After setting the scroll strategy to
setScrollStrategy(AxisScrollStrategies.progressive)
, I noticed that my chart was scrolling too quickly due to the fast incoming data. To address this, I decided to set a specific initial zoom level for the chart using chart.zoom({ x: -200, y: 180 }, { x: 500, y: 500 })
. However, this adjustment caused the chart to no longer auto-scroll along the X-axis. Is there a function I can use to release the axis without having to double click on it?
I'm also confused about the data cleaning process. Initially, I thought that
series.setDataCleaning({ minDataPointCount: 1000 })
would clean up any data points exceeding 1000 and out of view. Yet, when I checked the total number of points with console.log(series.getPointAmount())
, I observed the count going beyond 1000 and not being cleaned up even after some time. My timeseries chart should ideally display around 120k data points in total. How can I ensure that there are always at least 120k points on the chart while removing unnecessary old ones from rendering?