Chart
Charts are Recharts; Keyline adds the construction: a hairline grid, code-voice ticks, square marks and an inverse tooltip. Series take colours by role, focal first, then comparison. ChartFigure adds a Table view of the same rows, so no reading depends on colour or on seeing the plot.
Loading the live example…
Installation
Run it where your components.json is. The first time, map the @keyline-ui registry: one command, in Installation.
Usage
Examples
A line against a target
A ReferenceLine marks the target. Tab to the plot and use the arrow keys to step through the weeks; each one is read out.
Loading the live example…
The alert colour
Give the series that needs someone color: "var(--kl-data-alert)" and leave the rest to their roles. Stacked bars take data-kl-stack on the container, which splits the segments with a gap instead of a drawn border.
Loading the live example…
Props
Size the plot with CSS: it is 16:9 by default, or set a height and aspect-auto. Under reduced motion, series don't animate. ChartTable and ChartLegendContent are exported too. Install Recharts 3 with it; the registry item does.