Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

HeatmapChart

A grid of values coloured on the sequential ramp.

import { HeatmapChart } from '@loidolt/theme-charts';

Example

Jobs started by hour

Heatmap of 5 rows by 6 columns. Highest 26 at 14:00 · Fri; lowest 5 at 12:00 · Mon.

Notes

  • The ramp runs from least to most in both themes; in dark it gets lighter toward "most", so the busiest cells always stand out from the surface.

Props

Generated from the component source, so it cannot drift from the implementation.

HeatmapChart props
PropTypeDefaultNotes
data required HeatmapData—Column and row labels, and the value in each cell.
cornerLabel string'Row'Heading of the data table's first column, which holds the row labels.

Plus the attributes of Omit<ComponentProps<typeof Chart>, 'option' | 'table' | 'extensions'>andHeatmapOptions, forwarded to the root element.