Charts / React chart kit primitives / Time series
Lines with optional area fill, dashed comparison series, markers and a hover readout; here a sprint burndown.
React component AreaChart, data through props. One or more measures over a continuous run of time. Tags: area, line, time-series, burndown, trend, markers, basic.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, AreaChart } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/kit-area.json<AreaChart
className="mt-4"
height={220}
data={burn}
xLabelEvery={2}
markers={[{ index: 6, label: '+6 scope', color: 'var(--orange)' }]}
series={[
{ key: 'ideal', label: 'Ideal', color: 'var(--fg-4)', dashed: true, width: 1.5 },
{ key: 'remaining', label: 'Remaining', color: 'var(--blue)', area: true, width: 2.25 },
]}
/>