Blazor HeatMap Chart Example - Color Palette Options
This sample visualizes energy consumption in trillion British thermal units (BTU) by various public sectors of the US government over the years. The data label is disabled, with the tooltip displaying precise data point values.
Palette Type Configuration - This example demonstrates how to change the palette type between two fundamental color mapping approaches:
Palette Types Supported
- Fixed - Uses predefined discrete colors for distinct data ranges
- Gradient - Uses smooth color gradients for continuous value ranges
Palette Configuration - The palette type can be defined using the Type property in PaletteSettings.
Dynamic Legend Switching - The legend is enabled in this example. When the palette mode is changed, the legend type automatically switches between Gradient and Fixed type legends, providing appropriate visual representation for the selected palette configuration.
Interactive Features - The tooltip is enabled in this example. Hover the mouse over a data point or tap on touch-enabled devices to view specific energy consumption values for each sector and year.