This question is locked. New answers and comments are not allowed.
I've got a chart with a ChartPanAndZoomBehavior. How can I set the pan position programmatically? On Windows Phone, I could do this with chart.PanOffset, but I don't see this in the Windows 8 chart. There's a PlotOrigin, but it's read only.
4 Answers, 1 is accepted
0
Accepted
Hi Dan,
Thank you for using our RadControls for Windows 8!
If I understand your scenario correctly you can take advantage of the RadCartesianChart.ScrollOffset property which takes Point(double x, double y) value. It works in logical units, here is a sample setup.:
- You have initial zoom factor of 5 applied along the X-axis
- You want to have the third view displayed within the Viewport and have two views on the left and two on the right.
What you need to specify here is:
Please let me know if you need further assistance in order to achieve your desired scenario.
Regards,
Ivaylo Gergov
the Telerik team
Thank you for using our RadControls for Windows 8!
If I understand your scenario correctly you can take advantage of the RadCartesianChart.ScrollOffset property which takes Point(double x, double y) value. It works in logical units, here is a sample setup.:
- You have initial zoom factor of 5 applied along the X-axis
- You want to have the third view displayed within the Viewport and have two views on the left and two on the right.
What you need to specify here is:
<telerikChart:RadCartesianChart ScrollOffset="-2,0">Please let me know if you need further assistance in order to achieve your desired scenario.
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.
0
Dan
Top achievements
Rank 1
answered on 10 Jan 2013, 02:49 AM
Thanks, don't know how I missed that.
0
Dan
Top achievements
Rank 1
answered on 10 Jan 2013, 03:50 AM
Is there a way to see when the scroll value changes? I'd like to link two graphs to scroll together.
0
Hello Dan,
Thank you for getting back to us.
RadCartesianChart.ScrollOffset is a DependencyProperty and you can bind it to the ScrollOffset of another chart:
I hope this helps. Let me know if I can assist you in some other way.
Ivaylo Gergov
the Telerik team
Thank you for getting back to us.
RadCartesianChart.ScrollOffset is a DependencyProperty and you can bind it to the ScrollOffset of another chart:
<telerik:RadCartesianChart ScrollOffset="{Binding ElementName=otherChart, Path=ScrollOffset, Mode=TwoWay}">I hope this helps. Let me know if I can assist you in some other way.
All the best,
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.