Skip to content

LineChart

Plot an ordered series with a labelled scale and a readable data table.

alpina-ui/ui/line-chart

Interactive preview

Morning passengers

Station counts on the five working days in the survey week.

Data table
Day20262025
Mon420390
Tue520480
Wed480510
Thu560470
Fri460450

Usage notes

Plot an ordered series with a labelled scale and a readable data table. Pass title, description and data with label and value for each observation. Use loading while fetching data and formatValue for units.

When to use

Show observations in a meaningful sequence, such as passenger counts across weekdays.

When to avoid

Unordered categories create an invented trend when connected by a line. Compare them with bars instead.

Accessibility

Describe the time span and unit. Preserve missing observations as such in the supplied data and explain any gaps in the description.

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

Content

Use the measured quantity as the title. Keep time labels short and repeat dates consistently throughout a language edition.

Use
Passengers per weekday / Monday 420
Avoid
Trend / Point A

Copy in four languages

German
Fahrgäste pro Werktag21 characters
French
Voyageurs par jour ouvrable27 characters
Italian
Passeggeri per giorno lavorativo32 characters
Romansh
Passagiers per di da lavur26 characters
Add to your project
npx --no-install alpina add line-chart