RadzenHeatmap Class

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

Inheritance

Object

ComponentBase

RadzenComponent

RadzenHeatmap

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenHeatmap : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenHeatmapLink to this section

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

Declaration
public RadzenHeatmap()

Properties

CellPaddingLink to this section

Gets or sets the padding between cells in pixels.

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

ChildContentLink to this section

Gets or sets the child content (unused, for future extensibility).

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content (unused, for future extensibility).

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.

FormatStringLink to this section

Gets or sets the format string for cell values.

Declaration
public string FormatString { get; set; }
Property Value
Type Description
stringGets or sets the format string for cell values.

MaxColorLink to this section

Gets or sets the color for the maximum value.

Declaration
public string MaxColor { get; set; }
Property Value
Type Description
stringGets or sets the color for the maximum value.

MinColorLink to this section

Gets or sets the color for the minimum value.

Declaration
public string MinColor { get; set; }
Property Value
Type Description
stringGets or sets the color for the minimum value.

ShowValuesLink to this section

Gets or sets whether to show values inside cells.

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

ValuePropertyLink to this section

Gets or sets the property name for cell values (determines color intensity).

Declaration
public string ValueProperty { get; set; }
Property Value
Type Description
stringGets or sets the property name for cell values (determines color intensity).

XPropertyLink to this section

Gets or sets the property name for X-axis categories.

Declaration
public string XProperty { get; set; }
Property Value
Type Description
stringGets or sets the property name for X-axis categories.

YPropertyLink to this section

Gets or sets the property name for Y-axis categories.

Declaration
public string YProperty { get; set; }
Property Value
Type Description
stringGets or sets the property name for Y-axis categories.

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 heatmap.

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 🗙