XyzDataSeries
Provides a generic to hold X,Y,Z values. Used as a data-source for the , if this DataSeries is assigned to any other X-Y type, then the X-Y values will be rendered (Z ignored).
Inherits: DataSeries<T, T>
Implements: IXyzDataSeries<T, T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IXyzDataSeries
Constructors
public XyzDataSeries()
xyzDataSeries = XyzDataSeries()
Initializes a new instance of the XyzDataSeries class.
Properties
public override DataSeriesType DataSeriesType { get; }
value = xyzDataSeries.DataSeriesType
Gets the DataSeriesType for this DataSeries
public override bool HasValues { get; }
value = xyzDataSeries.HasValues
Gets whether the Data Series has values (is not empty)
StockSharp#Xaml#Charting#Model#DataSeries#IXyzDataSeries#ZValues
Gets the Z Values as a list of IComparable
Methods
public void Append(IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TZ> z)
xyzDataSeries.Append(x, y, z)
Appends a collection of X, Y0 and Y1 points to the series, automatically triggering a redraw
- x
- The X-values
- y
- The Y-values
- z
- The Z-values
public void Append(TX x, TY y, TZ z)
xyzDataSeries.Append(x, y, z)
Appends a single X, Y0, Y1 point to the series, automatically triggering a redraw
- x
- The X-value
- y
- The Y-value
- z
- The Z-value
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
xyzDataSeries.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 override void Append(TX x, TY[] yValues)
xyzDataSeries.Append(x, yValues)
Appends an X, Y point to the series
- x
- The X Value
- yValues
- The Y Values (depends on series type)
protected override void ClearColumns()
xyzDataSeries.ClearColumns()
When overridden in a derived class, clears all columns in the Data Series
public override IDataSeries<TX, TY> Clone()
result = xyzDataSeries.Clone()
Creates a deep copy of a DataSeries
public override TY GetYMaxAt(int index, TY existingYMax)
result = xyzDataSeries.GetYMaxAt(index, existingYMax)
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 override TY GetYMinAt(int index, TY existingYMin)
result = xyzDataSeries.GetYMinAt(index, existingYMin)
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 Insert(int index, TX x, TY y, TZ z)
xyzDataSeries.Insert(index, x, y, z)
Inserts an X, Y0, Y1 point at the specified index. Automatically triggers a redraw
- index
- The index to insert at
- x
- The X-value
- y
- The Y-value
- z
- The Z-value
public void InsertRange(int startIndex, IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TZ> z)
xyzDataSeries.InsertRange(startIndex, x, y, z)
Inserts a collection of X, Y0 and Y1 points at the specified index, automatically triggering a redraw
- startIndex
- The index to insert at
- x
- The X-values
- y
- The Y-values
- z
- The Z-values
public override void RemoveAt(int index)
xyzDataSeries.RemoveAt(index)
Removes the X,Y values at the specified index
- index
- The index to remove at
public override void RemoveRange(int startIndex, int count)
xyzDataSeries.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
public override HitTestInfo ToHitTestInfo(int index)
result = xyzDataSeries.ToHitTestInfo(index)
When overridden in a derived class, returns a HitTestInfo struct containing data about the data-point at the specified index
- index
- The index to the DataSeries
Returns: The HitTestInfo
public override IPointSeries ToPointSeries(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isCategoryAxis, bool? dataIsDisplayedAs2D, IRange visibleXRange, IPointResamplerFactory factory, object pointSeriesArg)
result = xyzDataSeries.ToPointSeries(resamplingMode, pointRange, viewportWidth, isCategoryAxis, dataIsDisplayedAs2D, visibleXRange, factory, pointSeriesArg)
Converts the default YValues to an IPointSeries which is used to render XY series
- resamplingMode
- The desired ResamplingMode
- pointRange
- The integer Indices range in the parent data-set
- viewportWidth
- The current width of the viewport
- isCategoryAxis
- If true, uses the indices to form the resampled X-values, else uses the X-Values themselves
- dataIsDisplayedAs2D
- If true, then data is presented as a scatter series without relationship between the points, e.g. not a line series
- visibleXRange
- The XAxis VisibleRange at the time of resampling
- factory
- The IPointResamplerFactory Instance
- pointSeriesArg
- Additional parameter to the point series.
Returns: A IPointSeries which is used to render XY series
public void Update(TX x, TY y, TZ z, int shift)
xyzDataSeries.Update(x, y, z, shift)
Updates (overwrites) the Y0, Y1 values at the specified X-value. Automatically triggers a redraw
- x
- The X-value
- y
- The Y-value
- z
- The Z-value
- shift