Home forums Using CanvasJS Custom rangechanging method

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

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

    Wojciech
    Member

    I would like to customize “reset” button method so it doesn’t get back to original minimum/maximum viewport.
    I want it to zoom out a little at each click or mousedown.

    If not possible – how can I add another button like zoom/pan/reset? So it can look the same way but make my custom method?

    #19734

    Vishwas R
    Keymaster

    Wojciech,

    Zoom Out in steps is not available as of now. But by storing every zoom-steps on rangeChanged and updating the viewport-range based on zoom-steps on click of back-button (an extra button added) you can achieve the same. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.