# RadzenTreemap Class

A standalone treemap chart component that displays hierarchical data as nested rectangles.

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)
- RadzenTreemap

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

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

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenTreemap()` | A standalone treemap chart component that displays hierarchical data as nested rectangles. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| ChildContent | `RenderFragment` | Gets or sets the child content. |
| ColorScheme | [`ColorScheme`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ColorScheme.md) | Gets or sets the color scheme. |
| Colors | `IEnumerable<string>` | Gets or sets custom colors for treemap items. |
| Data | `IEnumerable<object>` | Gets or sets the data items. |
| ItemClick | `EventCallback<TreemapClickEventArgs>` | Gets or sets the click event callback. |
| Padding | `double` | Gets or sets the padding between rectangles in pixels. |
| ShowLabels | `bool` | Gets or sets whether to show text labels. |
| ShowValues | `bool` | Gets or sets whether to show values. |
| TextProperty | `string` | Gets or sets the property name for the display text. |
| ValueProperty | `string` | Gets or sets the property name for the numeric value (determines rectangle area). |

## 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 treemap. |
| `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

