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

Set lower minimum zoom

4 Answers 250 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Gitle
Top achievements
Rank 1
Gitle asked on 05 Dec 2018, 08:14 AM

Hi,

I have charts that might contain data several hours long, but often it is desired to zoom into levels a minute long or less. The problem is that this is prevent by the minimum zoom setting. And I cannot set the minimum zoom setting lower than 1,1 , or 1% of total length. Why is this, and is it possible to bypass this so that we can zoom in further?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Dec 2018, 05:39 PM
Hi Gitle,

I am researching for a possibility to set such zoom setting, but I need some more time for this. I will do my best to update you no longer than Monday.

Thank you in advance for understanding.

Regards,
Stefan
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
Martin Ivanov
Telerik team
answered on 17 Dec 2018, 01:39 PM
Hello Gitle,

I am following up on Stefan's place. By default the chart zoom is restricted to minimum zoom=1 and maximum zoom = 100. This means that you cannot zoom out more than the chart's original size. This is restricted by the minimum zoom. And also you cannot zoom in more than 100 times the original size. This is restricted by the maximum zoom. 

You can control the allowed zoom range via the MaxZoom and MinZoom properties of RadCartesianChart

Note that the MinZoom cannot be set to a value less than 1,1.

Regards,
Martin Ivanov
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
Gitle
Top achievements
Rank 1
answered on 17 Dec 2018, 01:55 PM

[quote]

Note that the MinZoom cannot be set to a value less than 1,1.[/quote]

Ok, so it is impossible? Is there any plans to add support for deeper zoom levels?

0
Martin Ivanov
Telerik team
answered on 19 Dec 2018, 07:30 AM
Hello Gitle,

We don't plan to introduce zooming-out to a minimum value lower than 1,1. However, you can implement similar behavior by using a ScaleTransform that you can apply when you reach a zoom level, lower than the original size of the chart. You can do this when the MouseWheel event of the chart fires. Basically, you can check if the mouse wheel is rotated into the zoom-out direction (scroll down) and if the current zoom is 1,1. If so, apply a ScaleTransform to the chart.

Regards,
Martin Ivanov
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
ChartView
Asked by
Gitle
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Martin Ivanov
Telerik team
Gitle
Top achievements
Rank 1
Share this question
or