Home forums Chart Support Zoom Feature on dynamic chart with data length

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #19979


    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.

    Indranil Deo,
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.