Charts / React basic charts / Time series
A value that holds and then jumps, such as a price or a limit, with each change marked and how long it lasted on hover.
React component StepLine, data through props. One or more measures over a continuous run of time. Tags: step, line, price history, discrete change, time series, rate, inventory.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, StepLine } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/basic-step-line.json<StepLine data={planPrices[p]} until={TODAY} unit="currency" zero yLabel="Price per seat" height={340} color={p === 'pro' ? 'var(--violet)' : 'var(--blue)'} ariaLabel={`List price of the ${p === 'pro' ? 'Pro' : 'Team'} plan since launch`} />