Histogram
data
Histogram component
Terminal
$termuijs render histogram
Installation
$ bunx termuijs add histogram
Copies the source into src/components/histogram/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Histogram } from '@termuijs/widgets'ts
new Histogram(style: Partial<Style> = {}, opts: HistogramOptions = {})API Reference
Histogram
| Prop | Type | Required | Description |
|---|---|---|---|
bins | number | optional | — |
barColor | Color | optional | — |
xLabel | string | optional | — |