Observable PlotGeographic
Density Map
Density map visualization with geographic boundaries for population or event density.
Preview placeholder
density-map-v1
Installation
Terminal
npx @ontopic/viz add plot/geo/density-map-v1Props
| Prop | Type | Description |
|---|---|---|
points | PointData[] | Array of lat/lng points |
bandwidth | number | Density kernel bandwidth |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { DensityMap } from '@/viz/components/plot/geo/density-map-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryGeographic
- Subcategorygeo
Observable Plot Geographic Density Heatmap
Dependencies
@observablehq/plottopojson-client
Quick Install
npx @ontopic/viz add plot/geo/density-map-v1Related Components
recharts
State Bar Chart
Interactive state-level bar chart with sorting and filtering capabilities.
recharts
Sortable State Bar
Sortable state bar with search and expand features for detailed state analysis.
plot
Marijuana Opinion Trend
GSS marijuana legalization trends by church attendance and other demographics.
plot
US State Choropleth
US state choropleth map with TopoJSON. Color-encodes values by state with tooltips.