Skip to content

ChoroplethMap

beta

D3-powered choropleth map for geographic exposure visualization — regional treasury allocation, counterparty country risk, AUM by geography, FX exposure

import { ChoroplethMap } from "@danagraph/design-system/finance"
Loading demo…

Props

features
Type ChoroplethFeature[]Default —

GeoJSON features (countries / regions). Defaults to major world regions.

data
Type Record<string, number>Default —

Values keyed by feature id (or dataKey property)

dataKey
Type stringDefault —

Feature property to use as lookup key (default: feature.id)

colorScale
Type 'seqBlue' | 'seqRed' | 'seqNeutral'Default —

Sequential color ramp (default: seqBlue)

projection
Type 'mercator' | 'naturalEarth'Default —

Map projection (default: naturalEarth)

width
Type numberDefault —

SVG width in px (default 640)

height
Type numberDefault —

SVG height in px (default 360)

title
Type stringDefault —

Accessible chart title

unit
Type stringDefault —

Unit suffix for tooltip and legend (default: '%')

semantictypeborderviz
MobileStacks / Scroll

Choropleth map requires min 360px for region labels to be legible. ViewBox-based sizing scales down; legend repositions automatically.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?