Skip to content

BarChart

Compare signed values on a common scale with directly labelled bars.

alpina-ui/ui/bar-chart

Interactive preview

Change in library loans

Year-on-year change in quarterly loans by branch.

Data table
Branch20262025
Oerlikon12864
Altstadt84−16
Wiedikon−3248

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.

Keys
KeyAction
TabFocus the data-table disclosure when readings are available.
Enter / SpaceShow 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
Add to your project
npx --no-install alpina add bar-chart