Observable PlotDistribution
Density Plot
Kernel density estimation plot for smooth distribution visualization.
Preview placeholder
density-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/density-v1Props
| Prop | Type | Description |
|---|---|---|
data | number[] | Numeric values |
bandwidth | number | KDE bandwidth |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { DensityPlot } from '@/viz/components/plot/generic/density-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryDistribution
- Subcategorygeneric
Observable Plot Distribution KDE Density
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/density-v1Related Components
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.
plot
Generic Choropleth
Generic choropleth map component supporting any TopoJSON geography.
plot
Density Map
Density map visualization with geographic boundaries for population or event density.