Observable PlotDistribution

Histogram (Plot)

Distribution histogram with mean/median reference lines using Observable Plot.

Preview placeholder

histogram-plot-v1

Installation

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

Props

PropTypeDescription
datanumber[]Numeric values to plot
thresholdsnumberNumber of bins

See full TypeScript interface on GitHub for all props.

Usage Example

TypeScript
import { Histogram } from '@/viz/components/plot/generic/histogram-v1';