IDataDistributionCalculator

StockSharp.Xaml.Charting.Model.DataSeries

Defines the interface to a DataDistributionCalculator

Properties

DataIsEvenlySpaced
public bool DataIsEvenlySpaced { get; }
value = iDataDistributionCalculator.DataIsEvenlySpaced

Gets whether the data is evenly paced

DataIsSortedAscending
public bool DataIsSortedAscending { get; }
value = iDataDistributionCalculator.DataIsSortedAscending

Gets whether this DataSeries contains Sorted data in the X-direction. Note: Sorted data will result in far faster indexing operations. If at all possible, try to keep your data sorted in the X-direction

Methods

Clear
public void Clear()
iDataDistributionCalculator.Clear()

Clears the DataDistributionCalculator flags

OnAppendXValue
public void OnAppendXValue(ISeriesColumn<TX> xValues, TX newXValue, bool acceptsUnsortedData)
iDataDistributionCalculator.OnAppendXValue(xValues, newXValue, acceptsUnsortedData)

Called when X Values are appended. Should update the Data Distribution flags

xValues
The x values.
newXValue
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnAppendXValues
public void OnAppendXValues(ISeriesColumn<TX> xValues, int countBeforeAppending, IEnumerable<TX> newXValues, bool acceptsUnsortedData)
iDataDistributionCalculator.OnAppendXValues(xValues, countBeforeAppending, newXValues, acceptsUnsortedData)

Called when X Values are appended. Should update the Data Distribution flags

xValues
The x values.
countBeforeAppending
newXValues
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnInsertXValue
public void OnInsertXValue(ISeriesColumn<TX> xValues, int indexWhereInserted, TX newXValue, bool acceptsUnsortedData)
iDataDistributionCalculator.OnInsertXValue(xValues, indexWhereInserted, newXValue, acceptsUnsortedData)

Called when X Values are inserted. Should update the Data Distribution flags

xValues
The x values.
indexWhereInserted
newXValue
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnInsertXValues
public void OnInsertXValues(ISeriesColumn<TX> xValues, int indexWhereInserted, int insertedCount, IEnumerable<TX> newXValues, bool acceptsUnsortedData)
iDataDistributionCalculator.OnInsertXValues(xValues, indexWhereInserted, insertedCount, newXValues, acceptsUnsortedData)

Called when X Values are inserted. Should update the Data Distribution flags

xValues
The x values.
insertedCount
newXValues
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
indexWhereInserted
UpdateDataDistributionFlagsWhenRemovedXValues
public void UpdateDataDistributionFlagsWhenRemovedXValues()
iDataDistributionCalculator.UpdateDataDistributionFlagsWhenRemovedXValues()

Updates the data distribution flags when x values removed.