Zoom in scatter chart, cannot go back to original, and no min zoom

4 posts, 0 answers
  1. Intelleqt
    Intelleqt avatar
    4 posts
    Member since:
    Oct 2012

    Posted 08 Nov Link to this post

    Hi, i'm trying to implement mouse wheel zoom in a scatter chart, but encounter some issues.

    I'd like to do the following:

    - Zoom in to a fixed max zoom level, can't find support for this in API docs

    - Zoom out to the original zoom level, currently it seems to be to be locked to maximum extents based on data points, so if my original max/min are larger than the max/min of the data, I can't return to original view.

     

    Examples:
    With data points covering large part of original extents (can zoom out to similar to original view after zooming in): https://dojo.telerik.com/ABayehoT

    With data points only in positive quadrant (zoom out only shows small part of original view after zooming in): https://dojo.telerik.com/ABayehoT/2

  2. Tsvetina
    Admin
    Tsvetina avatar
    2342 posts

    Posted 12 Nov Link to this post

    Hello Intelleqt,

    You can achieve your goal if you use custom zoom in the Chart, like shown in this demo:
    Scatter Charts / Custom Pan and zoom

    I modified the demo example a bit, so you can test the behavior that you described in the default zooming scenario (limiting zoom and preventing the automatic zoom out range limit):
    https://dojo.telerik.com/OkiroPiR

    Regards,
    Tsvetina
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Intelleqt
    Intelleqt avatar
    4 posts
    Member since:
    Oct 2012

    Posted 12 Nov in reply to Tsvetina Link to this post

    Thanks, looks like it might do what I want with some modification.
    Can I suggest adding built-in support for min/max zoom level?
  4. Tsvetina
    Admin
    Tsvetina avatar
    2342 posts

    Posted 14 Nov Link to this post

    Hi,

    You can add a feature request in the feedback portal for a functionality that would allow zooming in/out past the populated ranges of the Chart until some pre-defined min or max zoom range values are reached. In general, this is not an often requested behavior and I cannot say if it will gather enough user interest to be implemented, but having it in the feedback portal will allow others to vote for it.

    Regards,
    Tsvetina
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top