Flutter Design Systems Galleries

Line chart

A line chart joins measurements in order so changes in direction are easy to see. Keep the intervals consistent and name the units.

About this look Stint app Appliance gallery

Compare daily balances

Compare the balance over the first four days of January and February. January dips on day three, while February rises each day.

Flutter preview Open preview
labels
A label for each position along the horizontal axis.
series
The series name and ordered measurements.
semanticLabel
Names the chart and period.
height
Sets the plot height.
valueText
Formats a value in the chart readout.

Shared behaviour

  • Keyboard and focus. Tab to the period button and activate it. Where the chart accepts focus, try its arrow keys to inspect a point.
  • Screen readers. Read the period and the chart’s description. The value or summary provided by the look changes with the data.
  • Direction and type. The surrounding text follows reading direction. Check the plot’s own ordering, labels and legend in RTL and at larger type.
Read the ui_core contract