Pre loader

Auto change XAxis range once DataSeriesSet change

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

Hi,

I’ve got couple of questions.

  1. Is there a way to automatically change the visible x axis range once we change the DataSeriesSet?

  2. What is the purpose of AutoRange property? If AutoRange is true, it doesn’t allow to zoom the chart. Is there a way to enable zooming when AutoRange true?

Thanks,
Charith

  • You must to post comments
0
0

Hi Charith,

Please, take a look at Zoom in a chart with live data post, where similar question is discussed. Also you may look at Data series append and chart redrawing thread for additional info on this topic. Hope you’ll find answer there, if not, please, feel free to ask, we are glad to help!

Best regards,
Yuriy

  • Charith Jayasundara
    Thanks Yuriy. IDataSeriesSet.InvalidateParentSurface(RangeMode rangeMode) works.
  • You must to post comments
0
0

Hi again,

You also could consider using of ViewportManager, which has the same method instead. This is more general approach, because allows you to work with chart series using both DataSeriesSet and SeriesSource.

var viewportManager = new DefaultViewportManager();
viewportManager.InvalidateParentSurface(RangeMode.ZoomToFit);

You could take a look at our Drag treshold example to see this approach in action.

Hope this helps!

Best regards,
Yuriy

  • You must to post comments
Showing 2 results
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