Open
Description
I would like to animate my stacked area chart when the data updates (so the transition from the old data to the new data is smooth). Right now, when the data updates the chart just instantly changes to reflect the new data.
I don't see an animate function on the Plotly react component or its prototype. What is the best way to go about animating these charts? Is this possible?
Thanks
Activity
nicolaskruchten commentedon Sep 12, 2018
This isn't currently possible within
react-plotly.js
but we're working on adding support for it in the underlying plotly.js library: plotly/plotly.js#1849GrahamWilsdon commentedon Feb 8, 2019
@nicolaskruchten any update on this?
dmt0 commentedon Feb 8, 2019
@GrahamWilsdon Some transitions are possible now, see the info in the PR that closed the mentioned issue: plotly/plotly.js#3217 (comment)
billyhunt commentedon Aug 28, 2019
Are bar chart animations available? I was having trouble getting one to work.
I am doing something like
nicolaskruchten commentedon Aug 28, 2019
No, bar chart animations are not merged yet... coming soon!
CarlosAmaral commentedon Jun 11, 2020
@nicolaskruchten Do we already have Bar chart animations?
nicolaskruchten commentedon Jun 11, 2020
Bar chart transitions are supported in recent versions of Plotly.js, yes.
CarlosAmaral commentedon Jun 11, 2020
@nicholas-esterer I used the same code as @billyhunt. Didn't work. Do you have an example that you can share? Thank you!
nicolaskruchten commentedon Jun 11, 2020
@CarlosAmaral which version of plotly.js are you using? Try 1.54.2 :)
CarlosAmaral commentedon Jun 12, 2020
@nicholas-esterer I did that. Same outcome. No animation.
nicolaskruchten commentedon Jun 12, 2020
Can you provide a full running example in a codepen or something for me to help you debug?
qidian99 commentedon Jun 15, 2020
Is there any example of animating the scatter plot?
CarlosAmaral commentedon Jun 15, 2020
@nicolaskruchten https://264b4.codesandbox.io/ sorry for the delay
nicolaskruchten commentedon Jun 15, 2020
@CarlosAmaral thanks! What part of this is meant to be animated?
CarlosAmaral commentedon Jun 15, 2020
Thank you, @nicolaskruchten. Good question, the bars going up for example?
11 remaining items