IDataSeries
Defines the Generic interface to a DataSeries which provides a data-source to a BaseRenderableSeries
Implements: IDataSeries, ISuspendable
Properties
public IList<TX> XValues { get; }
value = iDataSeries.XValues
Gets the X Values of this series
public IList<TY> YValues { get; }
value = iDataSeries.YValues
Gets the Y Values of this series
Methods
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)
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)
public IDataSeries<TX, TY> Clone()
result = iDataSeries.Clone()
Creates a deep copy of a DataSeries
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)
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)
public void RemoveAt(int index)
iDataSeries.RemoveAt(index)
Removes a point at the specified index
- index
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