Observable PlotGeographic

Generic Choropleth

Generic choropleth map component supporting any TopoJSON geography.

Preview placeholder

choropleth-v1

Installation

Terminal
npx @ontopic/viz add plot/geo/choropleth-v1

Props

PropTypeDescription
topologyTopoJSONTopoJSON topology object
dataGeoData[]Data to map to geography
idAccessorfunctionFunction to extract ID from features

See full TypeScript interface on GitHub for all props.

Usage Example

TypeScript
import { Choropleth } from '@/viz/components/plot/geo/choropleth-v1';