Knowledgebase
What are ResamplingModes
Posted by Admin - on 18 February 2019 10:54 AM

The ResamplingMode is used to define how SciChart resamples (reduces) series before rendering. Please see the options below for ResamplingMode.

Tip! It is important to note that several ResamplingMode methods make assumptions about the data in order to produce an error-free visual output.
/// 
/// Defines the ResamplingMode used by a 
/// 
public enum ResamplingMode
{
    /// <summary>
    /// Do not use resampling when redrawing a series
    /// </summary>
    None,

    /// <summary>
    /// Assumes Evenly-spaced data (TimeSeries). Resample by taking the min-max of oversampled data. 
    /// This results in the most visually accurate resampling, with the most performant rendering
    /// </summary>
    MinMax, 

    /// <summary>
    /// Assumes Evenly-spaced data (TimeSeries). Resample by taking the median point of oversampled data
    /// </summary>
    Mid,

    /// <summary>
    /// Assumes Evenly-spaced data (TimeSeries). Resample by taking the maximum point of oversampled data
    /// </summary>
    Max,

    /// <summary>
    /// Assumes Evenly-spaced data (TimeSeries). Resample by taking the minimum point of oversampled data
    /// </summary>
    Min,

    /// <summary>
    /// Does not assume Evenly-spaced data (TimeSeries). Resample by taking the min-max of oversampled data. 
    /// This results in the most visually accurate resampling, with the most performant rendering
    /// </summary>
    MinMaxWithUnevenSpacing, 
        
    /// <summary>
    /// Auto-detect the most suitable resampling algorithm (Fastest, plus most accurate) for the type of data appended
    /// </summary>
    Auto,
}

The Default ResamplingMode

Note the default ResamplingMode in SciChart v3.0 is Auto, which will automatically detect if your data is Sorted, Unsorted, evenly spaced or unevenly spaced.

In SciChart v2.x the default ResamplingMode is MinMax, which assumes that data is evenly spaced and sorted in the X direction. If your data distribution differs from this and you are getting bad rendering results, we recommend you try out SciChart v3.0's ResamplingMode.Auto.

Further Reading

To learn more about rendering in SciChart, please see the following documentation articles:

 

(1 vote(s))
Helpful
Not helpful

CONTACT US

Not sure where to start? Contact us, we are happy to help!


CONTACT US

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725