The HeatMapChart
component displays data values as a grid of cells, where the color intensity of each cell represents the magnitude of a numeric value. It is ideal for visualizing bivariate data distributions or correlations across two categorical dimensions.
marks: Array<object>
(required)Each item in the array represents a single cell in the heatmap, defined by its X/Y coordinates and a value that determines the cell's color intensity.
x: string
The horizontal coordinate (e.g., category or label on the X-axis).
y: string
The vertical coordinate (e.g., category or label on the Y-axis).
value: number
A numeric value used to determine the color intensity of the cell. Higher values typically produce darker or more saturated colors.
Inherits all ChartMarkProps
for styling and customization, such as:
foregroundStyle
opacity
annotation
cornerRadius
zIndex
, etc.HeatMapChart
is suitable for: