Components / Data display / Line chart

D6 · Data display

Line chart

An area series with a range control and an end-value tag.

When to use

  • A measure moves across a named range.
  • The latest value should sit on the line.

When not to use

  • There is no time axis.
  • Readers need each row’s fields. Use the table.

Usage

<div class="c-seg" role="radiogroup" aria-label="Range">
  <button type="button" role="radio" data-range="1D" aria-checked="false">1D</button>
  <button type="button" role="radio" data-range="1M" aria-checked="true">1M</button>
</div>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
data-range1D, 1M, YTD, 1Y1MWhich series is visible.
end tagnumberlast pointDrawn at the end of the line.
fillflat mix—Area uses a flat accent mix, not a gradient.

Keyboard

KeyAction
ArrowLeft / ArrowRightChanges the range.
EnterOpens the Values disclosure.

Accessibility

Motion

Pattern origin

Pattern type: a time-range chart with an end value.

Related

KPI tilesCompare viewData table