Charts
TwHeatmapChart
TwHeatmapChart is a Blazor heatmap: a grid of cells whose color intensity shows the value where a row and a column meet.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
TwHeatmapChart lays each series out as a row and each category as a column, and shades the cell where they meet by its value. Intensity uses a single hue, so darker always means more.Value labels
Set
ShowValues to print each value on its cell. The text switches between dark and light ink to stay readable on any shade.RAZOR
<TwChart Title="Support tickets by day and shift">
<TwHeatmapChart Categories="@_days" Series="@_shifts" ShowValues="true" />
</TwChart>Labels
ValueLabel names the value in tooltips and CategoryHeader names the first column of the table view.RAZOR
<TwChart Title="Support tickets by day and shift">
<TwHeatmapChart Categories="@_days" Series="@_shifts" ValueLabel="Tickets" CategoryHeader="Day" Height="ChartHeight.Small" />
</TwChart>Summary
Tooltips and the table view give the value of every series for each category.