Charts / React basic charts / Time series
One or more series over time, with gaps where data is missing, labelled line ends and a crosshair that reads every series at once.
React component LineChart, data through props. One or more measures over a continuous run of time. Tags: line, time series, trend, multi-series, crosshair, missing data, reference band.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, LineChart } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/basic-line.json<LineChart
x={weeks}
series={activeTeams}
curve={c as 'linear' | 'smooth'}
height={380}
zero
yLabel="Active teams"
reference={{ value: 4000, to: 4600, label: 'FY26 goal for Team: 4,000 to 4,600', color: 'var(--blue)' }}
ariaLabel="Weekly active teams by plan over 26 weeks"
/>