Heatmap

Heatmaps show data by coloring each quadrant, making it easy to see where values are high or low at a glance. They help you quickly spot geographic trends and differences.

Props

NameDescriptionTypeRequiredDefault
gradientSets the gradient color of the heatmaplinear-gradient(${string})Yes-
scalarsSets the scalar values for the gradient legendnumber[] | Array<{ tick: number; percent: number }>Yes-
labelsSets the labels for the gradient legend. Can be a boolean, a function, or an object with collision and display properties.boolean |
(value: string | number | Date) => string |
{ collision?: boolean; display(value: string | number | Date): string }
No-

Styling

Custom styling can be applied by targeting the class names below. Each class corresponds to a specific element for precise theming and overrides.

Class NameElement
heatmapThe base SVG element that wraps the visualization area.
worldmap__countryThe path element representing individual country shapes.