Observable PlotBasic Charts
Bar Chart
Simple bar chart using Observable Plot.
Preview placeholder
bar-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/bar-v1Props
| Prop | Type | Description |
|---|---|---|
data | BarData[] | Category-value pairs |
orientation | 'horizontal' | 'vertical' | Bar orientation |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { BarChart } from '@/viz/components/plot/generic/bar-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryBasic Charts
- Subcategorygeneric
Observable Plot Basic Bar Chart
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/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.