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 to this section

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

Declaration
public RadzenTreemap()

Properties

ChildContentLink to this section

Gets or sets the child content.

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

ColorSchemeLink to this section

Gets or sets the color scheme.

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

ColorsLink to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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 to this section

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

DisposeLink to this section

Declaration
public override void Dispose()

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnAfterRenderAsyncLink to this section

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

ResizeLink to this section

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 🗙