Home › forums › Using CanvasJS › Zoom Feature on dynamic chart with data length
This topic contains 1 reply, has 2 voices, and was last updated by Indranil Deo 11 months ago.
I use the commercial version of CanvasJS and I need some help on zooming feature:
I have a chart that continuosly writes data. So I use Data Length and shifting to only show the last 30mins.
I need the zooming feature enabled.
Now when the chart has shifted one time, I cannot access the data from my starting point at 0.
Is this possible? You can see a testing example here:
shift() removes the elements from the beginning of the array. i.e. As you are shifting dataPoints after every 30minutes, it just means you are removing all dataPoints except last 30minutes. Because of this, you will not be able to zoom/pan to the region where there are no dataPoints.
You must be logged in to reply to this topic.