rrag / react-stockcharts

Highly customizable stock charts with ReactJS and d3
http://rrag.github.io/react-stockcharts
MIT License
3.84k stars 956 forks source link

Loads more data without losing the current viewport #828

Open kaijaz123 opened 3 months ago

kaijaz123 commented 3 months ago

Hey there! I know the last maintenance was couple of years ago, but still would like to ask something for this one.

I am now plotting the candlestickchart with the stock data i fetch from API. So what I was trying to achieve is lets say the chart is already plotted for the first time and when user scroll to the left and reaches a point, it will automatically fetch the data from API and gets rendered again and this whole new plotting is done without rescaling the xaxis, means that the current view range (viewport) is maintained while the new data is being plot.

How can i achieve this?