Pre loader

Custom Series (Spline) Draw function excludes data outside of the Axis range.

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

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.

Version
4.2.3.10185
  • Riley Huddleston
    NOTE: We are using a CustomRenderableSeries that implements either linear or spline depending on some factors.
  • You must to post comments
0
0

Hi Riley,

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

Best regards
Markiyan
WPF Developer

  • You must to post comments
0
0

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.

  • Riley Huddleston
    Setting the Series ResamplingMode to None doesn’t give me all the data. Any ideas?
  • Riley Huddleston
    It seems that using the ResamplingMode doesn’t change the PointSeries viewport. But instead I just look at the DataSeries instead. So I simply left ResamplingMode untouched and switch between PointSeries when zoomed out sufficiently and DataSeries when zoomed in sufficiently.
  • 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