ElevateIQ DigitalsElevateIQ DigitalsComponent Library

Line chart

Change over an ordered axis, up to five series on one scale.

When to use it

One y-axis, always. Two measures in different units belong in two charts side by side. For readings against time with limits and zoom, use the trend chart.

Quotations sent and accepted

Options

Everything you can pass to Line chart.

PropTypeDefaultWhat it does
categoriesstring[]—The x-axis labels, in order.
series{ name, data: (number | null)[], color? }[]—Colours default to --chart-1… in order. null is a gap.
legendboolean2+ seriesHTML legend above the plot.
smooth / markers / areabooleanfalseCurve the lines; dots on every point; a 10% wash.
heightnumber | string—Plot height. The HTML legend sits outside it.
valueFormatter(value) => stringen-IN, 2 dpAxis labels, tooltips, value labels and the hidden data table.
aria-labelstring—What the chart shows. Also captions its hidden data table.
loading / emptyTitle / emptyDescriptionboolean / string—Passed to Chart: skeleton, and the empty state when every value is zero.