BulletChart
Compact KPI chart with value, target, and qualitative ranges
Source
LLM docs
Docs
Package
Usage
BulletChart is a compact KPI chart that displays an actual value against a target
with qualitative ranges as background bands. The required props are value and ranges.
Data format
BulletChart expects ranges as an array of objects with value and color properties:
Label
Use label prop to display a label next to the chart:
Vertical orientation
Set orientation="vertical" to render the chart vertically. Note that you need to set
a fixed height on the component when using vertical orientation:
Bar color
By default, the bar color is white. Use barColor prop to customize
the color of the actual value bar. Use targetColor to change the target marker color:
Chart size
Use size prop to control the height of the chart track area.
The barSize prop controls the height of the actual value bar independently:
Value formatter
Use valueFormatter prop to format values displayed in labels and tooltips.
Set withTooltip to also show a tooltip on hover:
Without target
The target prop is optional. If not provided, the target marker is not rendered: