Skip to main content
Pricing

Line Chart

Pro

Data points connected by lines, rendered as SVG, for showing trends over continuous intervals like time. Supports multiple series with distinct colours and stroke patterns. Optional data point markers, tooltips on hover, and a grid background. Multi-series lines use both colour and dash patterns for accessibility.

6 variants

JanFebMarAprMayJun

Variants

VariantDescriptionWhen to use
Single
Multi-line
With Area

Usage Guidelines

Do

Use consistent time intervals on the x-axis.

Don't

Plot more than 5 lines on a single chart — it becomes a tangle.

Do

Add data point markers to make individual values identifiable.

Don't

Use line charts for categorical data without a natural order — use Bar Chart.

Do

Pair colour with dash patterns (solid, dashed, dotted) for multi-series.

Don't

Omit axis labels or units — context is essential for interpretation.

Do

Include a hidden data table as a screen reader fallback.

Don't

Interpolate between sparse data points without indicating gaps.

Code

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Design Tokens

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Accessibility

  • Use role="img" with aria-label describing the chart's purpose.
  • Provide aria-describedby linking to a text summary of the trend.
  • Include a hidden data table with the full dataset for screen readers.
  • Multi-series lines must use dash patterns in addition to colour.
  • Interactive data point markers should be focusable with visible tooltips.

Keyboard Interactions

TabMoves focus to the chart container.
ArrowLeft/ArrowRightNavigates between data points along the line.
ArrowUp/ArrowDownSwitches between series in a multi-series chart.
Enter/SpaceOpens a tooltip for the focused data point.
EscapeDismisses the tooltip.