Components · Data
Chart
Any series on a live screen: stepped line, smooth line or grouped bars. Legend with a readout per series, hover cursor, optional band strip and a printed scale.
jsx
import { Chart } from '@andeus/ui';
Step (default)
Bars
With a band
Props
| Prop | Type | Default | |
|---|---|---|---|
| series | Array<{ label, values: number[], color? }> | sample | Colours cycle blue, yellow, green, orange, red. |
| type | 'step' | 'line' | 'bar' | 'step' | |
| band | { values, label?, color? } | — | Strip along the bottom. |
| summary | 'change' | 'last' | 'none' | 'change' | Legend readout. |
| format | (v: number) => string | — | For summary 'last'. |
| cursorLabel | (i: number) => string | — | Top-right while hovering. |
| startLabel | string | — | |
| endLabel | string | — | |
| height | number | 240 | |
| scale | boolean | true | Printed ticks under the bezel. |
| grid | boolean | true | |
| label | string | — | Caption. |