Observable PlotBasic Charts

Bar Chart

Simple bar chart using Observable Plot.

Preview placeholder

bar-v1

Installation

Terminal
npx @ontopic/viz add plot/generic/bar-v1

Props

PropTypeDescription
dataBarData[]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';