SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I have a SciChartSurface with several FastLineRenderableSeries. I may have several days worth of per second data in each series. I have set my XVisibleRange to 10 minutes and I update it every second to make sure the view stays current. I want to also allow the user to either pan or zoom that view but only on the x axis. I see the demo of the SciStockChart using the IsPanEnabled that allows the functionality I want but that does not appear to be available on the SciChartSurface. Is there another way to accomplish this or do I need a different type of chart?
You can indeed achieve this in SciChartSurface, as the SciStockChart is simply a subclass of the SciChartSurface which simplifies development for financial applications.
Please see our Silverlight demos which showcase these features. Some relevant examples include:
Many of the modifiers (ZoomPanModifier, RubberBandXyZoomModifier) have properties to change how they behave. You can see the options in the examples above.
Finally to get YAxis to zoom to fit always while panning you will need to set YAxis.AutoRange = true and YAxis.GrowBy = new DoubleRange(0.1, 0.1)
Hope this helps!
Please login first to submit.