Observable PlotStatistical
Split Bar Chart
Split bar chart with contrasting subgroup dots for comparing nested categories.
Preview placeholder
splitbar-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/splitbar-v1Props
| Prop | Type | Description |
|---|---|---|
data | SplitBarData[] | Data with primary and secondary values |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { SplitBar } from '@/viz/components/plot/generic/splitbar-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryStatistical
- Subcategorygeneric
Observable Plot Statistical Split Bar Comparison
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/splitbar-v1Related Components
recharts
Histogram (Recharts)
Distribution histogram with mean/median reference lines using Recharts.
recharts
Violin Plot
Kernel density estimation violin plots for distribution comparison across categories.
recharts
Scatter with Regression
Scatterplot with OLS regression line and confidence bands. Includes R-squared display.
plot
Marijuana Opinion Trend
GSS marijuana legalization trends by church attendance and other demographics.