[BUG?] chart doesn’t animate on first load?

Expected and Current Behavior

Hi – my chart’s animations aren’t appearing on first load. It works fine on second, third, etc. though.

Steps to Reproduce (for bugs)

Fiddle: https://jsfiddle.net/mjceb1xk/6/
as you can see, on first click of “generate report”, the pie chart just appears. If you click again, the animations appear.

Any suggestions?

Author: Fantashit

1 thought on “[BUG?] chart doesn’t animate on first load?

  1. It animates fine… you are just fading in and missing the animation. You should read and understand jQuery’s API, timing and asynchronous events.

    Here I’ve explicitly set the fade-in duration and set/update the chart halfway through:

Comments are closed.