Loading historical data from api to bars #1341
Replies: 1 comment 3 replies
-
Could you explain why using Here is a quick example on how you could use setData to update the entire series with the extra data: https://codesandbox.io/p/sandbox/lightweight-charts-ts-load-earlier-data-l57lo2 Related answers: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently building my platform that consumes data from database and draws a chart to the screen using lightweightcharts library. Adding a new bar to candleseries is not a problem, but whenever user scrolls to the right, wanting to expose more data, I need to load data from database and insert it into candleseries. However, in the documentation, it says inserting a new bar that is older than the last bar in the series is not possible. But I want my users to be able to see historical data while loading it dynamically from my api. How can I solve this problem? It would be very helpful if you can give any advice.
( series.setData() is not my option)
Beta Was this translation helpful? Give feedback.
All reactions