# HeatmapGrayscaleColorProvider class

Provides the color of a heatmap cell by mapping the cell value to a shade of gray.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](./index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public sealed class HeatmapGrayscaleColorProvider : AvaloniaObject, IHeatmapColorProvider
```

## Public Members

| name | description |
| --- | --- |
| [HeatmapGrayscaleColorProvider](HeatmapGrayscaleColorProvider/HeatmapGrayscaleColorProvider.md)() | The default constructor. |
| [GetColor](HeatmapGrayscaleColorProvider/GetColor.md)(…) | 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. |

## See Also

* interface [IHeatmapColorProvider](./IHeatmapColorProvider.md)
* namespace [Eremex.AvaloniaUI.Charts](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
