Skip to content

BulletChart

widgetsdata

BulletChart: a metric display with target marker and qualitative range bands

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

PropTypeRequiredDescription
maxnumberoptional
rangesBulletRange[]optional
valueColorColoroptional
targetColorColoroptional
labelstringoptional
#data#bullet-chart