World Map Chart
Global coverage
Vehicle report volume
Completed vehicle reports across active CarsXE markets. Hover a country or use the arrow keys to inspect the route.
Completed vehicle reports across active CarsXE markets.
Use the arrow keys to preview countries. Press Enter or Space to select one. Press Escape to dismiss the preview.
Select a country to inspect its report volume.
Installation
Import from the package. Do not run shadcn add in your app.
import { WorldMapChart } from "@carsxe/design-system/components/world-map-chart"Usage
import { WorldMapChart } from "@carsxe/design-system/components/world-map-chart"
<WorldMapChart
ariaLabel="Vehicle report volume by country"
data={[{ countryCode: "US", value: 18420 }]}
/>Controlled country selection
Use the arrow keys to preview countries. Press Enter or Space to select one. Press Escape to dismiss the preview.
Selected market: DE
Custom CarsXE scale
Use the arrow keys to preview countries. Press Enter or Space to select one. Press Escape to dismiss the preview.
Empty and invalid data
Use the arrow keys to preview countries. Press Enter or Space to select one. Press Escape to dismiss the preview.
API Reference
| Prop | Type | Default |
|---|---|---|
| ariaLabel | string | — |
| data | WorldMapDatum[] | — |
| description | string | — |
| height | number | 360 |
| colors | string[] | CarsXE chart tokens (5 levels) |
| missingColor | string | var(--border) |
| showLegend | boolean | true |
| valueFormatter | (value, datum) => string | value.toLocaleString() |
| selectedCountryCode | string | — |
| defaultSelectedCountryCode | string | — |
| onCountrySelect | (country: WorldMapCountry) => void | — |
| emptyMessage | string | "No map data available." |

