Charts
Category Comparison
Compares signed category values around an explicit zero baseline.
idle
Usage
Examples
Earnings card
Track bars with period tabs.
Tickets by team
A labeled comparison of numeric values across categories.
Regional revenue variance
This year against last year
Vertical bars with a comparison value per month, drawn as a quieter bar beside it.
Track bars
A track behind each bar shows the full scale.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Order categories deliberately and keep the zero baseline visible. Explain the units and meaning of negative values. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Time Series for change over time. Do not compare values measured in incompatible units. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | Provides stable caller-ordered categories with unique IDs, visible labels, and finite signed values. |
| | — | Uses the ID as the band key so display labels may repeat. |
| | Required | Names the chart and its single comparison series. |
| | "en-US" / "series1" | Sets number formatting and the semantic chart color. |
| | Locale number formatting | Formats tooltip values; axis labels use formatAxisValue when supplied, then formatValue, then locale defaults. |