A standalone treemap chart component that displays hierarchical data as nested rectangles.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenTreemap : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderA standalone treemap chart component that displays hierarchical data as nested rectangles.
public RadzenTreemap()Gets or sets the child content.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content. |
Gets or sets the color scheme.
public ColorScheme ColorScheme { get; set; }
| Type | Description |
|---|---|
| ColorScheme | Gets or sets the color scheme. |
Gets or sets custom colors for treemap items.
public IEnumerable<string> Colors { get; set; }
| Type | Description |
|---|---|
| IEnumerable<string> | Gets or sets custom colors for treemap items. |
Gets or sets the data items.
public IEnumerable<object> Data { get; set; }
| Type | Description |
|---|---|
| IEnumerable<object> | Gets or sets the data items. |
Gets or sets the click event callback.
public EventCallback<TreemapClickEventArgs> ItemClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<TreemapClickEventArgs> | Gets or sets the click event callback. |
Gets or sets the padding between rectangles in pixels.
public double Padding { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the padding between rectangles in pixels. |
Gets or sets whether to show text labels.
public bool ShowLabels { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show text labels. |
Gets or sets whether to show values.
public bool ShowValues { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show values. |
Gets or sets the property name for the display text.
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the property name for the display text. |
Gets or sets the property name for the numeric value (determines rectangle area).
public string ValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the property name for the numeric value (determines rectangle area). |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
Resizes the treemap.
public void Resize(double width, double height)
| Type | Name | Description |
|---|---|---|
| double | width | |
| double | height |