

Every state


default


hover


focus


inspect


two-parts
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "Where visits come from" | Title text. |
| subtitle | string | null | "November, 48,210 visits" | Line under the title. Null or left out: none. |
| parts | ChartCardDonutPart[] | [ { label: "Search", value: 21340 }, { label: "Direct", value: 11870 }, { label: "Newsletter", value: 7920 }, { label… | The parts, biggest first reads best. Up to five get their own colour; more share the last. |
| totalLabel | string | "visits" | Word under the total in the middle ("visits"). |
| format | Intl.NumberFormatOptions | { maximumFractionDigits: 0 } | Format. |
| locale | string | "en-IE" | Locale for numbers and dates. |
| defaultActive | number | null | null | The part that starts lifted (index). Left out: none, the total shows. |
| className | string | – | Extra classes on the outer element. |
More chart cards
All 8chart-card-04 is in UI ProGet UI Pro, €199


