LineChart
Plot an ordered series with a labelled scale and a readable data table.
alpina-ui/ui/line-chartStation counts on the five working days in the survey week.
Data table
| Day | 2026 | 2025 |
|---|---|---|
| Mon | 420 | 390 |
| Tue | 520 | 480 |
| Wed | 480 | 510 |
| Thu | 560 | 470 |
| Fri | 460 | 450 |
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.
| 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
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
npx --no-install alpina add line-chart