Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork140
Open
Description
I've been trying to update a plotly graph rapidly and frequently to generate an animation in a react app usingwindow.requestAnimationFrame API, according tothis example. Right now, in my update function, I usesetState to refresh my states (already bound to my<Plotly /> data prop) and thus trigger plotly to redraw. However,setState is an asynchronous function and it seems to consume too much execution time in between the frame interval. To solve this problem, I'm now trying to useDOM refs andPlotly.animate API to update the graph outside of the React logic. So is there any chance that react-plotly.js will supportref prop in the<Plotly /> component?
Thanks and have a nice day!
Metadata
Metadata
Assignees
Labels
No labels