Worldmap

Worldmap heatmaps show data by coloring each region on a map, 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
translateSets the translation and scale of the worldmap{ x: number; y: number; scale: number }No{ x: 0, y: 0, scale: 0 }
gradientSets the gradient color of the worldmap as heatmaplinear-gradient(${string})No-
classNameCustom class name for the SVG elementstringNo-

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
worldmapThe base SVG element that wraps all countries.
worldmap__countryThe path element representing individual country shapes.