Skip to content

Line chart

Pro

Lines over time: one subject with a wash under it and others to compare with, read by pointer, finger and keyboard. Not an M3 component (@windmorph/react-pro).

import { LineChart, ChartLegend, ChartTooltip } from '@windmorph/react-pro/charts';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

Code

import { LineChart } from '@windmorph/react-pro/charts'; <LineChart  subject="this-year"  aria-label="Sign-ups"  places={[    { key: '2026-06-01', tick: '1 Jun', name: 'Week of 1 June' },    { key: '2026-06-08', tick: '8 Jun', name: 'Week of 8 June' },    { key: '2026-06-15', tick: '15 Jun', name: 'Week of 15 June' },    { key: '2026-06-22', tick: '22 Jun', name: 'Week of 22 June' },  ]}  series={[    { key: 'this-year', label: 'This year', values: [1180, 1240, 1310, 1290] },    { key: 'last-year', label: 'Last year', values: [980, 1010, 1060, 1040] },  ]}/>

Examples

Sign-ups against last year

Below nought, with a gap

A window of live figures