Klar

Charts / React basic charts / Schedule

Timeline

Events on a time axis with labels staggered above and below so none collide, periods as spans, categories by colour and icon, and a marker for today.

React component Timeline, data through props. Things placed on a calendar or clock: Gantts, punchcards, traces. Tags: timeline, events, milestones, roadmap, releases, incidents, history, schedule.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, Timeline } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/basic-timeline.json

Usage

<Timeline key={m} events={launchEvents} categories={launchCategories} today={TODAY} mode={m as 'fit' | 'scroll'} pxPerDay={11} height={300} ariaLabel="Atlas 3.0 launch programme timeline" />

Related timeline charts