BulletChart
data
BulletChart: a metric display with target marker and qualitative range bands
Terminal
$termuijs render bullet-chart
Installation
$ bunx termuijs add bullet-chart
Copies the source into src/components/bullet-chart/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { BulletChart } from '@termuijs/widgets'ts
new BulletChart(style: Partial<Style> = {}, opts: BulletChartOptions = {})API Reference
BulletChart
| Prop | Type | Required | Description |
|---|---|---|---|
max | number | optional | — |
ranges | BulletRange[] | optional | — |
valueColor | Color | optional | — |
targetColor | Color | optional | — |
label | string | optional | — |