You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use plotly to draw realtime stock prices in jupyter. The data is updated every second and there are multi plotly charts.
# pseudocode
fig = go.FigureWidget(
data=[..],
layout={..},
)
async def update():
while True:
data = .. fetch data here
with fig.batch_update():
for i in range(len(data_row)):
self._chart.data[i].x += (data[i].datetime,)
self._chart.data[i].y += (data[i].price,)
await asyncio.sleep(1.0)
When there are more than 10+ charts, the performance becomes very bad. seems plotly does not do incremental update, instead, it re-render whole chart every second?
Is there any way to improve the performance? How to make it do incremental update?
The text was updated successfully, but these errors were encountered:
Thank you for your interest in plotly - for how-to / support questions like this, you will probably get a response more quickly in our forums (https://community.plotly.com/). Cheers - @gvwilson
I use plotly to draw realtime stock prices in jupyter. The data is updated every second and there are multi plotly charts.
When there are more than 10+ charts, the performance becomes very bad. seems plotly does not do incremental update, instead, it re-render whole chart every second?
Is there any way to improve the performance? How to make it do incremental update?
The text was updated successfully, but these errors were encountered: