Home forums Feature Requests & Feedback Zoom Out Functionality?

Tagged: 

This topic contains 16 replies, has 5 voices, and was last updated by  Priyanka M S 1 month, 1 week ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #14532

    Andrew
    Member

    Hello there!

    First off, thanks for creating such a great product, we are happy to have just purchased and integrated into our app. One feature which we really want/need is the ability for a user to zoom out.

    Take for example if they are looking at 1-year of data and they zoom into a specific section of the data but accidentally zoom too far. As far as I know the only thing for them to do is reset the zoom entirely and try again but if they could just zoom out a little bit instead of resetting this would *huge* for our users.

    Does that functionality exist yet and if not, could it please get on your radar?

    Thanks!

    #14539

    Bivek Singh
    Participant

    Andrew,

    Thank you for choosing CanvasJS. As of now, Zoom Out in steps is not available out of the box. It is on our road map but we don’t have a timeline for it yet. Meanwhile, you can easily achieve this with a workaround using viewportMinimum and viewportMaximum. Here is an example jsFiddle.

    —-
    Bivek Singh

    #22106

    leo
    Member

    Hello,

    Is there any update for Zoom Out in steps functionality?

    Thanks!

    #22107

    Priyanka M S
    Member

    leo,

    This feature isn’t available as of now. However you can achieve this functionality with couple of lines of code.
    Please take a look at this jsfiddle.

    __
    Priyanka M S
    Team CanvasJS

    #22108

    leo
    Member

    Hi Priyanka,

    But we want it on Reset Button. Is there any way by which we can trigger it on Reset button.

    Thanks,

    #22122

    leo
    Member

    Hi Team CanvasJS

    Please reply.

    #22130

    Vishwas R
    Keymaster

    @leo,

    Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #22134

    leo
    Member

    Hello Vishwas R,

    Thank you so much!

    #22239

    leo
    Member

    Hi,

    In above fiddle snippet sometimes if I zoom in once I have to zoom out twice. How to handle this?

    #22249

    leo
    Member

    Please reply.

    #22260

    Vishwas R
    Keymaster

    @leo,

    Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #22287

    leo
    Member

    Hi Vishwas R,

    It works fine for normal html page.I am using canvas js on popup.

    Following is the snippet that we are using.

    When I zoom in and zoom out it works fine but if after this I resize my window as I am calling ‘chart.render()’ it directly enables the ‘.canvasjs-chart-toolbar’ class element. And it unnecessary shows pan and my zoomout icons

    https://snippet.webix.com/1od45jej

    #22300

    Vishwas R
    Keymaster

    @leo,

    Please take a look at this updated code.


    Vishwas R
    Team CanvasJS

    #22305

    leo
    Member

    Hi Vishwas,

    It again has one issue. If I zoom in trice and and zoom out once and again try to zoom in once and zoom out to initial state. The sequence of zoom out and zoom in does not match.

    #22325

    Vishwas R
    Keymaster

    @leo,

    We are looking into the issue that you have mentioned and will get back to you at the earliest.

    Meanwhile you can try handling pushing and popping according to the zoom / step-back action performed and let us know your feedback.


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.