Skip to content

HeatmapGrayscaleColorProvider.GetColor method

Returns a shade of gray that corresponds to the position of the specified value within the range. The minimum value maps to black, and the maximum value maps to white.

Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public Color GetColor(double value, IMinMaxValues range)

Parameters

name type description
value double The value displayed by the cell.
range IMinMaxValues The range of the values displayed by the heatmap.

Returns

type description
Color The color of the cell.

See Also