Pre loader

[cl-d]How to get pan/zoom functionality of SciStockChart in the SciChartSurface?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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 must to post comments
0
0

Hey there,

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!

Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies