Profile Picture

Zoom in Chart does not work for very small total axis range

Posted By joern kunze 6 Years Ago

Zoom in Chart does not work for very small total axis range

Author
Message
joern kunze
Posted 6 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221

Hi Experts,
I have a Chart with a rather narrow total Y-Range: 
-6.2E-12 ... 2.13E-10
https://www.nevron.com/forum/uploads/images/9b794d14-2094-436b-bec6-3592.jpg
When I use the normal zoom, the zoom is not recognized in the OnDataZoom_EndDrag event:

rangeTotal = oChart.Axis(StandardAxis.PrimaryY).ViewRange;
rangeZoomed = oChart.Axis(StandardAxis.PrimaryY).Scale.RulerRange;

now rangeTotal  and rangeZoomed  have both the same values (Y-Min and Y-Max for the total range).
When the Y-Range is better scaled (lets say from -10 ... 10) there is no problem, the rangeZoomed shows the mouse zoomed coordinates. 
What can I do to make the zoom work even for very small total axis ranges ?

Thanks for your help,
best regards,
Joern



Tags
Nevron Support
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Joern,
By default the NRangeSelection object has limitations on how small the zoom range can be. This is done to prevent numerical instability in the control that arises from double operations with very small ranges. The min zoom range is controlled from the MinHorizontalPageSize and MinVerticalPageSize properties of the range selection object. By default they are set to 0.000001.

Hope this helps - let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team



joern kunze
Posted 6 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
... thanks a lot for the advice, by adjusting rangeSelection.MinHorizontalPageSize / rangeSelection.MinVerticalPageSize I got it working properly.

By the way, maybe it would be a good idea if the Chart component could implement this automatically in a future version ?

Thanks again,
Best regards,
Joern





Similar Topics


Reading This Topic