# RadzenHeatmapSeries<TItem> Class

A chart series that renders a grid of colored cells (a heatmap). Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty) that drives the cell color. Cell color is picked from . When no range matches, is used. Both and must be numeric.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md)
- [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md)
- RadzenHeatmapSeries<TItem>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender
- [IChartSeries](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartSeries.md)
- [IChartValueAxisSeries](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartValueAxisSeries.md)

## Syntax

```csharp
public class RadzenHeatmapSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of data items in the series. |

## Examples

```razor
<RadzenChart>
    <RadzenHeatmapSeries Data=@grid CategoryProperty="X" ValueProperty="Y" IntensityProperty="Lux"
        ColorRange="@ranges" Title="Illuminance" />
    <RadzenCategoryAxis Min="0" Max="5" />
    <RadzenValueAxis Min="0" Max="5" />
</RadzenChart>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenHeatmapSeries<TItem>()` | A chart series that renders a grid of colored cells (a heatmap). Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty) that drives the cell color. Cell color is picked from . When no range matches, is used. Both and must be numeric. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| CellHeight | `double` | The height of each cell in axis units. When 0 (default) the height is inferred from the smallest gap between unique Y values in the data. |
| CellWidth | `double` | The width of each cell in axis units. When 0 (default) the width is inferred from the smallest gap between unique X values in the data. |
| Color | `string` |  |
| ColorRange | `IList<SeriesColorRange>` | The value-to-color mapping for cells. Each range specifies a Min, Max and Color. Cells with an intensity falling inside a range are filled with its color. |
| Fill | `string` | The default fill color applied to cells whose intensity does not match any entry in ColorRange. |
| IntensityLabel | `string` | The label used for the intensity dimension in the tooltip. Defaults to "Value". |
| IntensityProperty | `string` | The name of the numeric property of TItem that provides the cell intensity (the value mapped to color). |
| Stroke | `string` | The cell border color. |
| StrokeWidth | `double` | The cell border width in pixels. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Contains(double x, double y, double tolerance)` | `bool` |  |
| `DataAt(double x, double y)` | `ValueTuple<object, Point>` |  |
| `Render(ScaleBase categoryScale, ScaleBase valueScale)` | `RenderFragment` |  |
| `RenderLegendItem(bool clickable)` | `RenderFragment` |  |
| `TooltipTitle(TItem item)` | `string` |  |
| `TooltipValue(TItem item)` | `string` |  |
| `TransformCategoryScale(ScaleBase scale)` | [`ScaleBase`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ScaleBase.md) |  |
| `TransformValueScale(ScaleBase scale)` | [`ScaleBase`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ScaleBase.md) |  |

## Inherited Members

- From [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md): BandIntersects, CategoryProperty, ChildContent, ClipToPlotRange, ComposeCategory, ComposeValue, CoordinateSystem, Data, Dispose, GetCategories, GetDataLabels, GetMean, GetMedian, GetMode, GetRawValueGetter, GetScaledDataPoints, GetTitle, GetTooltipPosition, GetTrend, Hidden, IncludeZeroInValueScale, Initialize, InsidePolygon, InvokeClick, IsDate, IsNumeric, IsValueNullable, Items, MarkerSize, MarkerType, Markers, MeasureLegend, MeasureLegendItems, Overlays, PickColor, RenderOverlays, RenderSharedTooltipItem, RenderTooltip, RenderTopOverlays, RenderingOrder, RequireChart, SetParametersAsync, ShowActivePoint, ShowInLegend, ShowLineInLegend, Title, TooltipClass, TooltipLabel, TooltipStyle, TooltipTemplate, TryGetPlotRange, ValueAxisName, ValueProperty, Visible
- From [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md): Chart, DidParameterChange, ShouldRefreshChart, ValidateParameters
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitialized, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

