RadzenTreemap Class

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

Inheritance

Object

ComponentBase

RadzenComponent

RadzenTreemap

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenTreemap : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenTreemaplink

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

Declaration
public RadzenTreemap()

Properties

ChildContentlink

Gets or sets the child content.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content.

ColorSchemelink

Gets or sets the color scheme.

Declaration
public ColorScheme ColorScheme { get; set; }
Property Value
Type Description
ColorSchemeGets or sets the color scheme.

Colorslink

Gets or sets custom colors for treemap items.

Declaration
public IEnumerable<string> Colors { get; set; }
Property Value
Type Description
IEnumerable<string>Gets or sets custom colors for treemap items.

Datalink

Gets or sets the data items.

Declaration
public IEnumerable<object> Data { get; set; }
Property Value
Type Description
IEnumerable<object>Gets or sets the data items.

ItemClicklink

Gets or sets the click event callback.

Declaration
public EventCallback<TreemapClickEventArgs> ItemClick { get; set; }
Property Value
Type Description
EventCallback<TreemapClickEventArgs>Gets or sets the click event callback.

Paddinglink

Gets or sets the padding between rectangles in pixels.

Declaration
public double Padding { get; set; }
Property Value
Type Description
doubleGets or sets the padding between rectangles in pixels.

ShowLabelslink

Gets or sets whether to show text labels.

Declaration
public bool ShowLabels { get; set; }
Property Value
Type Description
boolGets or sets whether to show text labels.

ShowValueslink

Gets or sets whether to show values.

Declaration
public bool ShowValues { get; set; }
Property Value
Type Description
boolGets or sets whether to show values.

TextPropertylink

Gets or sets the property name for the display text.

Declaration
public string TextProperty { get; set; }
Property Value
Type Description
stringGets or sets the property name for the display text.

ValuePropertylink

Gets or sets the property name for the numeric value (determines rectangle area).

Declaration
public string ValueProperty { get; set; }
Property Value
Type Description
stringGets or sets the property name for the numeric value (determines rectangle area).

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Disposelink

Declaration
public override void Dispose()

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnAfterRenderAsynclink

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

Resizelink

Resizes the treemap.

Declaration
public void Resize(double width, double height)
Parameters
Type Name Description
double width
double height
An error has occurred. This app may no longer respond until reloaded. Reload 🗙