|
Group: Forum Members
Posts: 86,
Visits: 221
|
Thanks for the example, Nevron Support Team.
When I use the OnDataZoom_EndDrag, basically everything works as expected. But I have slightly a problem when the red dot of the PagingView is pressed after multiple zooming has been done (e.g. X-Axis has a total range from10 to 90; then first zoom in 20 to 80 and then zoom even further in from 50 to 60 - and now click red dot of the PagingViewBar near the XAxis) : in this case, the OnDataZoom_EndDrag-event is fired, but the following doesnt work anymore:
Implementation in OnDataZoom_EndDrag-Event: _NevronChart.document.Calculate(); _NevronChart.document.RecalcLayout(_NevronChart.View.Context); ... oChart.Axis(StandardAxis.PrimaryX).CalculateAxis(_NevronChart.View.Context); NRange1DD contentRange = oChart.Axis(StandardAxis.PrimaryX).ViewRange; contentRange = oChart.Axis(StandardAxis.PrimaryX).ContentRange; NRange1DD viewRange = oChart.Axis(StandardAxis.PrimaryX).Scale.RulerRange;
=> now oChart.Axis(StandardAxis.PrimaryX).ViewRange and oChart.Axis(StandardAxis.PrimaryX).Scale.RulerRange are the same and return for the example above 10 to 90 instead 20 to 80. The real shown view afterwards however, is from 20 to 80.
Is there a way to force oChart.Axis(StandardAxis.PrimaryX).Scale.RulerRange to return the correct values (20 to 80) within the OnDataZoom_EndDrag-Event?
When I look to the Nevron example (All Examples \ Interactivity \ Tools \ Multiple Axes Zooming and Scrolling), the prefered event for doing so should be Scale_RulerRangeChanged. I understand this. But since the OnDataZoom_EndDrag is fired when the red dot is clicked, it should also be working correctly (or it should not be fired at all in this case).
Thanks for the help, Best regards, Joern
|