Observable PlotSpecialized
Diverging Bar Chart
Diverging bar chart centered at zero for showing positive/negative values.
Preview placeholder
diverging-bar-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/diverging-bar-v1Props
| Prop | Type | Description |
|---|---|---|
data | DivergingData[] | Data with positive and negative values |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { DivergingBar } from '@/viz/components/plot/generic/diverging-bar-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategorySpecialized
- Subcategorygeneric
Observable Plot Specialized Diverging Sentiment
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/diverging-bar-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.