SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.