Heatmap2DArrayDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

Represents static 2D array as IDataSeries to be displayed by FastHeatmapRenderableSeries Converts data into color

Implements: IDataSeries<T, T>, IDataSeries, ISuspendable, IHeatmap2DArrayDataSeriesInternal, IHeatmap2DArrayDataSeries

Constructors

Heatmap2DArrayDataSeries(T, Func<int, T>, Func<int, T>)

Creates an instance of Heatmap2dArrayDataSeries from 2D array

array2D
2D array with data. First dimension is considered as Y, second one is X
xMapping
Delegate which returns X value for X index in 2D array
yMapping
Delegate which returns Y value for Y index in 2D array

Properties

LatestYValue
public IComparable LatestYValue { get; }
value = heatmap2DArrayDataSeries.LatestYValue

Gets the latest Y-Value of the DataSeries

XType
public Type XType { get; }
value = heatmap2DArrayDataSeries.XType

Gets the Type of X-data points in this DataSeries. Used to check compatibility with Axis types

YType
public Type YType { get; }
value = heatmap2DArrayDataSeries.YType

Gets the Type of Y-data points in this DataSeries. Used to check compatibility with Axis types

Methods

GetIndex``1
private int? GetIndex<T>(Func<int, T> mapping, double value, int dimension)
result = heatmap2DArrayDataSeries.GetIndex(mapping, value, dimension)

Reverse mapping