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

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

Declaration
public RadzenHeatmap()

Properties

CellPaddinglink

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

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

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

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

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

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

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

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

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

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

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 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 🗙