Charts
Part-to-Whole
Shows caller-ordered non-negative parts as a labeled whole, with a complete legend and safe normalization.
idle
Usage
Examples
Quarterly budget mix
Recommendations
| Guidance | Practice |
|---|---|
| Do | Name the whole and each part. Use a deliberate part order and keep the complete legend visible. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use non-negative parts from the same total. Use Category Comparison for signed or independent values. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | Provides caller-ordered labeled parts with stable unique IDs and finite non-negative raw values. |
| | — | Uses each value to calculate its share of the whole; the component does not infer or round source values. |
| | Required | Names the chart and its empty state. |
| | "en-US" / Locale number formatting | Formats raw values and displayed shares. Zero values remain in the legend without a chart arc. |