Charts
Heatmap
Compares labeled matrix values with a theme-aware color scale and exact accessible data table.
idle
Usage
Examples
Weekly activity heatmap
A heatmap with a missing observation and a text table equivalent.
Requests by weekday and time
Weekday by hour
Seven days by twelve two-hour buckets in a compact grid.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Name both matrix dimensions and the value scale. Keep exact values available through the data table. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Color shows magnitude, not causation. Use a table when reading individual values is the primary task. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | Names the chart and its data table. |
| | Required | Provides unique labels and rectangular row values. Values are finite non-negative numbers or null for missing observations. |
| | Value | Names values in the legend and tooltip. |
| | Observed maximum | Sets the upper color-scale value. Values above it use the highest color bucket. |
| | String(value) | Formats numeric values in tooltips, the legend, and the data table. |
| | series1 | Selects a supported semantic chart tone. |