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 1 month ago.

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

    Christian
    Member

    Hello,

    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:

    http://jsfiddle.net/Whykiki/bkacarjo/188/

    #19981

    Indranil Deo
    Member

    @whykiki,

    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.