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

[Solved] Get displayrange of chartseries

1 Answer 31 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 23 Jan 2013, 02:48 PM
Hi,
I enabled zooming in a RadCartesianChart and wanted to get the current visible range of the displayed x series.
e.g my series contains values from 1 - 100 and i zoomed in that only 20-40 are displayed, I wanted to get this information somehow. It is needed to update some other control (e.g a grid).
Any hints how I can get this information?
many thx, Michi

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 24 Jan 2013, 04:07 PM
Hello Michael,

Thank you for your interest in our suite.

I can suggest you to track the changes in RadCartesianChart.ScrollOffset / Zoom properties. In the following scenario the RadCartesianChart.Zoom property will be (5,1) and the ScrollOffset will be (-1,0). If ScrollOffset changes to (-2,0)  - then 40-60 values will be displayed and so on.

Also, if you are using DateTimeContinuousAxis or LinearAxis as your horizontal axis, you can get the actual visible range for the axis from the DateTimeContinuousAxis.ActualRange (LinearAxis.ActualRange) read-only property.

I hope this helps. Let me know if I can assist you any further.

 

Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Michael
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or