Skip to content

Chart

Compare positive and negative values on a shared axis and provide the data in a table.

alpina-ui/ui/chart

Interactive preview

Change in registrations
Data table
CategoryRegistrations
January+18
February−7
March+12
April+24

Usage notes

Include readable category names and values in the accompanying table. Visitors can compare signed values or read a long category name without interpreting bar length.

When to use

Offer a quick, labelled comparison of values with the underlying data always available.

When to avoid

For a temporal series, use the line chart. For a dense financial statement, use a table with units and totals.

Accessibility

Describe what the categories represent. Keep numeric values in the alternative table even if the graph is hidden or printed.

Keys
KeyAction
TabFocus the data-table disclosure when readings are available.
Enter / SpaceShow or hide the same values in the accessible table.

Content

Use a short title that specifies the measure. Keep the category labels parallel and make every axis or column unit explicit.

Use
Opening hours by branch
Avoid
Overview

Copy in four languages

German
Öffnungszeiten14 characters
French
Heures d’ouverture18 characters
Italian
Orari di apertura17 characters
Romansh
Uras d’avertura15 characters
Add to your project
npx --no-install alpina add chart