IChartBulletDatum

interface
Chart

Bullet data payload for a single series entry in a bullet chart. Combines the actual value, the target / goal value, and the qualitative range bands that form the background.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

value
required
number
Actual (measured) value. Drives the solid foreground bar.
target
required
number
Target / goal value. Rendered as a thin cross-tick.
ranges
required
Array<IChartBulletRange>
Qualitative range bands rendered behind the bars. At least one band is required; three is the Stephen Few recommendation (poor / acceptable / good).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Providing bullet data with three qualitative ranges

typescript