I have XamDataChart with ScatterLineSeries with NumericXAxis and NumericYAxis users can use to pan or zoom. I've been requested to add a function to reset the chart to the default view. Which property or method do I use?
Thank you,
Eugene
Hello Eugene,
Thank you for your post. I have been looking into your requirement and if you wish to resent the zoom of the XmaDataChart, you can set its WindowRect property to new Rect with x and y set to 0 and width and height set to 1. Also you can enable the Overview Plus Details Pane, which is a tool that allows you to navigate and zoom the XamDataChart and also has a button that resets the zoom of the control. You can find more details on the Overview Plus Details Pane here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamDataChart_Navigating_Chart_Using_Overview_Plus_Detail_Pane.html. I have also created a sample application for you that shows how you can reset the zoom through code and how you can enable the Overview Plus Details Pane.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.
Setting WindowRect to {0, 0, 1, 1} helped solve the problem.
Thank you.
Thank you for your post. I am very glad that the approach I have suggested was helpful for you. Please let me know if you need any further assistance on the matter.