Question

Here's the fiddle.

I had issue width the chart with on toggling the sidebar.

And I got it solved with the help of SO from this post.

Now I'm facing with another bug. That is if I add some transition in toggling the sidebar.

The chart width gets vice-versa.

In the above fiddle you can find it.

If I remove the transition, it does works fine.

Here's the fiddle which works fine without the sidebar transition.

Help me out to solve this bug.

Thanks in advance.

Was it helpful?

Solution

You are having an issue with the timing. You are trying to reflow the chart before the animation is finished. Try with setTimeout(reflowChart, 200) as I did here: http://jsfiddle.net/hige/J4Uz2/

Hope it helps! :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top