google / google-visualization-issues

288 stars 35 forks source link

Feature request: Animation "stop" method. #2959

Open meta-hub opened 2 years ago

meta-hub commented 2 years ago

I am currently using the line charts type to display dynamic curves that are altered with slider input changes.

Using the animation options when modifying data produces undesirable behaviour on calling chart.draw() if an animation is already in sequence (seems like regular html/css animation woes). Currently using a less then satisfactory workaround of redrawing the chart after the animationFinish event is triggered, when required.

A direct animation.stop method could be used to overcome some of these undesirable behaviours.