Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Animate updates to axes

Open johanrd opened this issue 3 years ago • 0 comments

Feature Proposal

It would be very powerful for chart.js to include the possibility to animate the axes upon general calls to chart.update().

This simple and powerful example from d3 shows how an axis animation can provide very useful context for how the scale changes, compared to just animating the datasets. Especially the Y-axis animation is helpful to grasp the scale of the update more easily:

animating_axes

(this was originally posted as https://github.com/chartjs/Chart.js/issues/4221#issuecomment-800513443, however it seems to have drowned there, therefore opening a separate request here)

Possible Implementation

https://bl.ocks.org/d3noob/7030f35b72de721622b8

johanrd avatar Nov 21 '22 11:11 johanrd