A chart series that renders a grid of colored cells (a heatmap). Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty) that drives the cell color. Cell color is picked from . When no range matches, is used. Both and must be numeric.
CartesianSeries<TItem>.RequireChart
CartesianSeries<TItem>.ComposeCategory
CartesianSeries<TItem>.ComposeValue
CartesianSeries<TItem>.IsValueNullable
CartesianSeries<TItem>.GetRawValueGetter
CartesianSeries<TItem>.IsNumeric
CartesianSeries<TItem>.GetCategories
CartesianSeries<TItem>.RenderOverlays
CartesianSeries<TItem>.RenderTopOverlays
CartesianSeries<TItem>.SetParametersAsync
CartesianSeries<TItem>.Initialize
CartesianSeries<TItem>.MeasureLegend
CartesianSeries<TItem>.MeasureLegendItems
CartesianSeries<TItem>.InsidePolygon
CartesianSeries<TItem>.RenderTooltip
CartesianSeries<TItem>.RenderSharedTooltipItem
CartesianSeries<TItem>.GetTooltipPosition
CartesianSeries<TItem>.TooltipStyle
CartesianSeries<TItem>.TooltipClass
CartesianSeries<TItem>.GetMedian
CartesianSeries<TItem>.GetMean
CartesianSeries<TItem>.GetMode
CartesianSeries<TItem>.GetTrend
CartesianSeries<TItem>.GetScaledDataPoints
CartesianSeries<TItem>.GetTitle
CartesianSeries<TItem>.TooltipLabel
CartesianSeries<TItem>.GetDataLabels
CartesianSeries<TItem>.PickColor
CartesianSeries<TItem>.Dispose
CartesianSeries<TItem>.InvokeClick
CartesianSeries<TItem>.ValueAxisName
CartesianSeries<TItem>.ChildContent
CartesianSeries<TItem>.TooltipTemplate
CartesianSeries<TItem>.Overlays
CartesianSeries<TItem>.CoordinateSystem
CartesianSeries<TItem>.CategoryProperty
CartesianSeries<TItem>.Visible
CartesianSeries<TItem>.ShowInLegend
CartesianSeries<TItem>.ValueProperty
CartesianSeries<TItem>.RenderingOrder
CartesianSeries<TItem>.Markers
CartesianSeries<TItem>.MarkerType
CartesianSeries<TItem>.ShowActivePoint
CartesianSeries<TItem>.ShowLineInLegend
CartesianSeries<TItem>.MarkerSize
RadzenChartComponentBase.ShouldRefreshChart
RadzenChartComponentBase.ValidateParameters
RadzenChartComponentBase.DidParameterChange
RadzenChartComponentBase.Chart
ComponentBase.OnInitialized
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenHeatmapSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries| Name | Description |
|---|---|
| TItem | The type of data items in the series. |
<RadzenChart>
<RadzenHeatmapSeries Data=@grid CategoryProperty="X" ValueProperty="Y" IntensityProperty="Lux"
ColorRange="@ranges" Title="Illuminance" />
<RadzenCategoryAxis Min="0" Max="5" />
<RadzenValueAxis Min="0" Max="5" />
</RadzenChart>A chart series that renders a grid of colored cells (a heatmap). Each data item provides an X coordinate (CategoryProperty), a Y coordinate (ValueProperty) and an intensity value (IntensityProperty) that drives the cell color. Cell color is picked from . When no range matches, is used. Both and must be numeric.
public RadzenHeatmapSeries<TItem>()The height of each cell in axis units. When 0 (default) the height is inferred from the smallest gap between unique Y values in the data.
public double CellHeight { get; set; }
| Type | Description |
|---|---|
| double | The height of each cell in axis units. When 0 (default) the height is inferred from the smallest gap between unique Y values in the data. |
The width of each cell in axis units. When 0 (default) the width is inferred from the smallest gap between unique X values in the data.
public double CellWidth { get; set; }
| Type | Description |
|---|---|
| double | The width of each cell in axis units. When 0 (default) the width is inferred from the smallest gap between unique X values in the data. |
The value-to-color mapping for cells. Each range specifies a Min, Max and Color. Cells with an intensity falling inside a range are filled with its color.
public IList<SeriesColorRange> ColorRange { get; set; }
| Type | Description |
|---|---|
| IList<SeriesColorRange> | The value-to-color mapping for cells. Each range specifies a Min, Max and Color. Cells with an intensity falling inside a range are filled with its color. |
The default fill color applied to cells whose intensity does not match any entry in ColorRange.
public string Fill { get; set; }
| Type | Description |
|---|---|
| string | The default fill color applied to cells whose intensity does not match any entry in ColorRange. |
The label used for the intensity dimension in the tooltip. Defaults to "Value".
public string IntensityLabel { get; set; }
| Type | Description |
|---|---|
| string | The label used for the intensity dimension in the tooltip. Defaults to "Value". |
The name of the numeric property of TItem that provides the cell intensity (the value mapped to color).
public string IntensityProperty { get; set; }
| Type | Description |
|---|---|
| string | The name of the numeric property of TItem that provides the cell intensity (the value mapped to color). |
The cell border color.
public string Stroke { get; set; }
| Type | Description |
|---|---|
| string | The cell border color. |
The cell border width in pixels.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | The cell border width in pixels. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
public override bool Contains(double x, double y, double tolerance)
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y | |
| double | tolerance |
| Type | Description |
|---|---|
| bool |
public override ValueTuple<object, Point> DataAt(double x, double y)
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y |
| Type | Description |
|---|---|
| ValueTuple<object, Point> |
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
| Type | Description |
|---|---|
| RenderFragment |
protected override RenderFragment RenderLegendItem(bool clickable)
| Type | Name | Description |
|---|---|---|
| bool | clickable |
| Type | Description |
|---|---|
| RenderFragment |
protected override string TooltipTitle(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item |
| Type | Description |
|---|---|
| string |
protected override string TooltipValue(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item |
| Type | Description |
|---|---|
| string |