Home forums Using CanvasJS zoom not working.

This topic contains 3 replies, has 2 voices, and was last updated by  Vishwas R 2 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20528

    kinokatsu
    Member

    Hi.
    My code is not zooming.
    JSFiddle

    Zoom was working until the middle of coding. I do not know when some time it has stopped working.
    Please point out which code is bad.

    #20546

    Vishwas R
    Keymaster

    @kinokatsu,

    The behavior is designed such that zooming is limited upto a certain region, so the user doesn’t end up zooming into a blank-region (region with no dataPoints). To zoom into a certain region, there should be a minimum of 3-4 dataPoints.

    In your case, zoom doesn’t work as its getting invalidated over axisY. However zoomType: ‘x’ works fine in your case.

    We will reconsider this behavior for future releases.


    Vishwas R
    Team CanvasJS

    #20587

    kinokatsu
    Member

    Hi. Vishwas,

    thanks for your reply.

    It is invalid because “axisYType” of “river shape” is “secondary”?
    Zoom worked if I made that line missing.

    JSFiddle

    • This reply was modified 2 months, 2 weeks ago by  kinokatsu. Reason: Link missed
    #20594

    Vishwas R
    Keymaster

    @kinokatsu,

    Yes, as there are only 2 dataPoints attached to secondary y-axis, it invalidates the zooming region over y-axis.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.