BarChart
Compare signed values on a common scale with directly labelled bars.
alpina-ui/ui/bar-chartYear-on-year change in quarterly loans by branch.
Data table
| Branch | 2026 | 2025 |
|---|---|---|
| Oerlikon | 128 | 64 |
| Altstadt | 84 | −16 |
| Wiedikon | −32 | 48 |
Usage notes
Compare signed values on a common scale with directly labelled bars. Pass title, description and data with label and value for each observation. Use loading while fetching data and formatValue for units.
When to use
Compare the magnitude or signed change of independent categories against a shared zero baseline.
When to avoid
Use LineChart for change through time and a table when readers need to look up many exact values.
Accessibility
Give the figure a subject and unit. Supply category labels and an equivalent data table that preserves negative values.
| Key | Action |
|---|---|
| Tab | Focus the data-table disclosure when readings are available. |
| Enter / Space | Show or hide the same values in the accessible table. |
Content
Name the measure and period in the title. Keep place names intact and put the unit next to the values or in the column heading.
- Use
- Quarterly change in loans / Bern −32
- Avoid
- Quarterly results / Bern 32
Copy in four languages
- German
- Veränderung der Ausleihen25 characters
- French
- Variation des prêts19 characters
- Italian
- Variazione dei prestiti23 characters
- Romansh
- Midada dals emprests20 characters
npx --no-install alpina add bar-chart