Flutter Design Systems Galleries

Sparkline

A sparkline gives a compact impression of change beside a value or a heading. Use a larger chart when readers need axes or exact comparisons.

About this look Stint app Appliance gallery

Read a five-day trend

Compare two weeks of requests. The first ends at eight requests and the second ends at four. Read the Monday and Friday counts alongside the small line.

Flutter preview Open preview
values
Daily counts in chronological order.
semanticLabel
Names the series and period.
width
Sets the width of the small plot.
height
Sets the height of the small plot.

Shared behaviour

  • Keyboard and focus. Tab to the week button and activate it. A sparkline may be a single reading rather than a series of focus stops.
  • Screen readers. The adjacent text names the week and gives its first and last counts. Compare it with the description the look gives its sparkline.
  • Direction and type. The small plot sits beside the week’s reading. Check the direction of the line and the larger text separately.
Read the ui_core contract