the zoom behavior on XAM data chart zooms in both directions on the x axis. Is there any way to hold the zoom extent on the right portion of the chart, so that the endmost datapoint remains visible and the zoom is relative to the end mos t datapoint
Hello,
Thank you for your post. I have been looking into it and I suggest you add the following code in your XamDataChart’s AcftualWindowRectChanged event:
XamZoombar horizontal = (sender as XamDataChart).HorizontalZoombar; XamZoombar vertical = (sender as XamDataChart).VerticalZoombar; Dispatcher.BeginInvoke(new Action(() => { horizontal.Range.FromScaleScroll(horizontal.Range.Scale, horizontal.Maximum); vertical.Range.FromScaleScroll(vertical.Range.Scale, vertical.Maximum); }), System.Windows.Threading.DispatcherPriority.Background, null);
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks a lot, Stefan.