X animation #12164
Replies: 3 comments
-
chrome_danxfc5RjP.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
CHART_UPDATE_DURATION = 1600; |
Beta Was this translation helpful? Give feedback.
-
|
this is actually expected behavior in chat js The reason the x-axis animation doesn’t run is because nothing on the x-axis is changing. In your chart, the x values are defined by: so the x-axis stays exactly the same on every update. Chart.js only animates an axis when the values on that axis change. Since you’re only updating the y data, the y animations work, but there’s nothing for the x-axis to animate. you have a few options:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please help, the x-axis animation is not working, while all other animations are working.
I create chart:
Then I update the graph data, but there is no animation, although the graph is updated.
Beta Was this translation helpful? Give feedback.
All reactions