

Every state


default


hover


focus


inspect


full-week
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "Visits" | Title text. |
| subtitle | string | null | "This week, so far" | Line under the title ("This week, so far"). Null or left out: none. |
| days | ChartCardBarsDay[] | [ { short: "Mon", label: "Monday 24 Nov", value: 1840 }, { short: "Tue", label: "Tuesday 25 Nov", value: 2120 }, { sh… | Seven days (or any short run), oldest first. |
| today | number | null | 4 | Which bar is today (index). Null: no bar is marked. |
| todayLabel | string | "Today" | Word on today's bar. |
| averageLabel | string | null | "Avg" | Word before the average ("Avg"). Null: no average line. |
| unit | string | "visits" | What a value counts, for the readout ("visits"). |
| format | Intl.NumberFormatOptions | { maximumFractionDigits: 0 } | Format. |
| locale | string | "en-IE" | Locale for numbers and dates. |
| defaultActive | number | null | null | The bar the readout starts on. Left out: today, else the last. |
| className | string | – | Extra classes on the outer element. |
More chart cards
All 8chart-card-02 is in UI ProGet UI Pro, €199


