This is a migrated thread and some comments may be shown as answers.

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

3 Answers 40 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Intelleqt
Top achievements
Rank 1
Intelleqt asked on 08 Nov 2018, 02:37 PM

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

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 12 Nov 2018, 11:13 AM
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.
0
Intelleqt
Top achievements
Rank 1
answered on 12 Nov 2018, 02:10 PM
Thanks, looks like it might do what I want with some modification.
Can I suggest adding built-in support for min/max zoom level?
0
Tsvetina
Telerik team
answered on 14 Nov 2018, 12:01 PM
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.
Tags
Charts
Asked by
Intelleqt
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Intelleqt
Top achievements
Rank 1
Share this question
or