# RadzenHeatmap Class

A standalone heatmap chart component that displays data as a color-coded grid.

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

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenHeatmap

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenHeatmap : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenHeatmap()` | A standalone heatmap chart component that displays data as a color-coded grid. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| CellPadding | `double` | Gets or sets the padding between cells in pixels. |
| ChildContent | `RenderFragment` | Gets or sets the child content (unused, for future extensibility). |
| Data | `IEnumerable<object>` | Gets or sets the data items. |
| FormatString | `string` | Gets or sets the format string for cell values. |
| MaxColor | `string` | Gets or sets the color for the maximum value. |
| MinColor | `string` | Gets or sets the color for the minimum value. |
| ShowValues | `bool` | Gets or sets whether to show values inside cells. |
| ValueProperty | `string` | Gets or sets the property name for cell values (determines color intensity). |
| XProperty | `string` | Gets or sets the property name for X-axis categories. |
| YProperty | `string` | Gets or sets the property name for Y-axis categories. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `OnAfterRenderAsync(bool firstRender)` | `Task` |  |
| `OnBecameInvisible()` | `void` |  |
| `Resize(double width, double height)` | `void` | Resizes the heatmap. |
| `SetParametersAsync(ParameterView parameters)` | `Task` |  |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

