Observable PlotSpecialized
Slope Chart
Slope chart for before/after comparisons showing change direction.
Preview placeholder
slope-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/slope-v1Props
| Prop | Type | Description |
|---|---|---|
data | SlopeData[] | Before/after value pairs |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { SlopeChart } from '@/viz/components/plot/generic/slope-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategorySpecialized
- Subcategorygeneric
Observable Plot Specialized Comparison Change
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/slope-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.