Knowledgebase: RenderableSeries API
What are ResamplingModes
Posted by Admin - on 21 March 2014 11:19 AM

The ResamplingMode is used to define how SCICHART resamples 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>
    /// Assumes Evenly-spaced data (TimeSeries). Resample by taking the minimum data-set to 
    /// accurately represent the original points without incurring aliasing or other artifacts
    /// </summary>
    Nyquist,

    /// <summary>
    /// Groups close points in 2D space
    /// </summary>
	Cluster2D,

    /// <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

ResampingModes and Scatter Charts

ResamplingMode.Auto is unsuitable for scatter charts. For this chart type, we recommend ResamplingMode.None

(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