-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Animate updates to axis? #4221
Comments
This is an interesting idea that I thought was requested before but I couldn't find an existing issue for. Unfortunately it will take a lot of work to implement this since all the axes will need to change. I'm not sure how feasible it is to implement this in Chart.js v2 |
Okay! If anyone comes back to this later and wants to see a live example of what I mean, it's the last graph on this page, in this case a d3 example. |
I just released chartjs-plugin-streaming (GitHub & Tutorial), which provides the exactly same feature you are looking for. I'm now refactoring the code to use a custom scale ('realtime' scale type) to improve flexibility, and would like to contribute it to github.com/chartjs/* repository once I finish it. |
@nagix looks really good :) I didn't check the code, only the tutorials, very promising! A few things I would recommend:
|
@simonbrunel Thanks for your suggestions. I will fix these shortly. I understand the dist issues from #3033. |
Sounds good and should be very easy since you already use the same release workflow as the |
@nagix this looks amazing! |
Whereas This simple yet powerful example (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: |
@etimberg |
When I provide an update to the labels for an axis, I would like to have an option to animate that change....in my case I'd like to see the axis scroll left so that the left-most value disappears from view and the newly added value slides in on the right. It doesn't appear that there's any way to do this, currently.
The text was updated successfully, but these errors were encountered: