IPointResampler
StockSharp.Xaml.Charting.Numerics
Provides the interface to a Pointresampler - an algorithm which is able to reduce the number of data-points in a series for rendering fast, while maintaining visual accuracy of the series
Methods
Execute
public IPointSeries Execute(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isFifo, bool isCategoryAxis, IList xColumn, IList yColumn, bool? dataIsSorted, bool? dataIsEvenlySpaced, bool? dataIsDisplayedAs2d, IRange visibleXRange)
result = iPointResampler.Execute(resamplingMode, pointRange, viewportWidth, isFifo, isCategoryAxis, xColumn, yColumn, dataIsSorted, dataIsEvenlySpaced, dataIsDisplayedAs2d, visibleXRange)
Transforms the input X and Y series into an IPointSeries, a resampled, reduced dataset for rendering on screen
- resamplingMode
- The ResamplingMode to use
- pointRange
- The indices of the X and Y input data to use (clips by indices)
- viewportWidth
- The current width of the Viewport
- isFifo
- If the data is FIFO (Circular buffered) data
- isCategoryAxis
- If the XAxis is a category axis
- xColumn
- The input X-Value Series
- yColumn
- The input Y-Value Series
- dataIsSorted
- If the data is sorted in the X-Direction
- dataIsEvenlySpaced
- If the data is Evenly Spaced in X
- dataIsDisplayedAs2d
- If the data is presented as a scatter, e.g. not line
- visibleXRange
- The VisibleRange of the XAxis at the time of resampling
Returns: The transformed dataset for rendering