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
Create a chart with a LOT of markers / chart data, the chart I am viewing has a total of 5747 markers, example image can be seen below.
Everything runs incredibly smooth when I don't call following method (once a second or let's say every 5 seconds), but when I do call update on the final candle to repaint, cursor, scrolling and dragging all hangs and it becomes very choppy.
Actual behavior:
It repaints every single marker, which takes around 300ms and the chart becomes unusable.
Expected behavior:
I would assume that it shouldn't touch any of the existing markers, unless there is a marker on the candle that was updated, then maybe it should update the marker position?
Screenshots:
chart with a lot of markers:
Devtools output when calling .update() with a single new candle:
CodeSandbox/JSFiddle/etc link:
The text was updated successfully, but these errors were encountered:
Lightweight Charts Version: 3.3
Steps/code to reproduce:
Create a chart with a LOT of markers / chart data, the chart I am viewing has a total of 5747 markers, example image can be seen below.
Everything runs incredibly smooth when I don't call following method (once a second or let's say every 5 seconds), but when I do call update on the final candle to repaint, cursor, scrolling and dragging all hangs and it becomes very choppy.
Actual behavior:
It repaints every single marker, which takes around 300ms and the chart becomes unusable.
Expected behavior:
I would assume that it shouldn't touch any of the existing markers, unless there is a marker on the candle that was updated, then maybe it should update the marker position?
Screenshots:
chart with a lot of markers:

Devtools output when calling .update() with a single new candle:

CodeSandbox/JSFiddle/etc link:
The text was updated successfully, but these errors were encountered: