Hi,
I’ve got couple of questions.
-
Is there a way to automatically change the visible x axis range once we change the DataSeriesSet?
-
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 login to post comments
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
- Yuriy Zadereckiy answered 11 years ago
- last edited 8 years ago
-
Thanks Yuriy. IDataSeriesSet.InvalidateParentSurface(RangeMode rangeMode) works.
- You must login to post comments
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
- Yuriy Zadereckiy answered 11 years ago
- You must login to post comments
Please login first to submit.