IDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

Defines the Generic interface to a DataSeries which provides a data-source to a BaseRenderableSeries

Implements: IDataSeries, ISuspendable

Properties

XValues
public IList<TX> XValues { get; }
value = iDataSeries.XValues

Gets the X Values of this series

YValues
public IList<TY> YValues { get; }
value = iDataSeries.YValues

Gets the Y Values of this series

Methods

Append
public void Append(TX x, TY[] yValues)
iDataSeries.Append(x, yValues)

Appends an X, Y point to the series

x
The X Value
yValues
The Y Values (depends on series type)
Append
public void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
iDataSeries.Append(x, yValues)

Appends a list of X, Y points to the series

x
The list of X points
yValues
Lists of Y points (depends on series type)
Clone
public IDataSeries<TX, TY> Clone()
result = iDataSeries.Clone()

Creates a deep copy of a DataSeries

GetYMaxAt
public TY GetYMaxAt(int index, TY existingYMax)
result = iDataSeries.GetYMaxAt(index, existingYMax)

Used internally by AutoRanging algorithm. When overriden in a derived class, gets the Max(existingYMax, currentMax), where currentMax is the maximum at the specified index

index
The index to the underlying dataset
existingYMax
The existing maximum

Returns: The new YMax, which is the Min(existingYMax, currentMax)

GetYMinAt
public TY GetYMinAt(int index, TY existingYMin)
result = iDataSeries.GetYMinAt(index, existingYMin)

Used internally by AutoRanging algorithm. When overriden in a derived class, gets the Min(existingYMin, currentMin), where currentMin is the minimum at the specified index

index
The index to the underlying dataset
existingYMin
The existing minimum

Returns: The new YMin, which is the Min(existingYMin, currentMin)

Remove
public void Remove(TX x)
iDataSeries.Remove(x)

Removes a point with the specified X Value

x
RemoveAt
public void RemoveAt(int index)
iDataSeries.RemoveAt(index)

Removes a point at the specified index

index
RemoveRange
public void RemoveRange(int startIndex, int count)
iDataSeries.RemoveRange(startIndex, count)

Removes a range of points starting from the specified index

startIndex
Starting index of the range of elements to remove
count
The number of elements to remove