SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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.
In our view model, the data range is expanded to include data outside of the X-Axis range. This is done to preserve the spline curve which is defined by previous points– doing this prevents the spline curve from changing drastically by including X number of points outside the range.
When the Draw function is called, the point context that was bound in is filtered to the X Axis range which leads to the spline curve changing as you pan (especially noticeable if it affects a peak).
How can I change this behavior to preserve the spline line?
Updated — Setting ResampleMode = None does not give me all the points.
Points are pre-filtered by the given axis viewport. This is related to the resampling the chart does. The resampling can by disabled by using the ResamplingMode property on the series.
When using ResamplingMode.None, the draw function is provided with all the data — So you must do your own filtering of the viewport.
I will also post my answer here.
We are doing optimization so PointSeries in a moment of Drawing can have not exact amount of dataPoints.
So in case you need all DataPoints to calculate precise spline in SplineLineRenderableSeries you should pass DataSeries as inputPointSeries parameter in ComputeSplineSeries method while drawing (meaning in Draw method of RenderableSeries).
Hope it will be useful
Please login first to submit.