LineChart
ChartsTrend over ordered x. data [{x,y,series?}]; one line per series.
Props
Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.
| Prop | Type | Required | Description |
|---|---|---|---|
| title | string | No | Heading shown at the top of the component. |
| subtitle | string | No | Secondary line under the title. |
| height | number | No | Height in pixels. |
| format | "number" | "currency" | "percent" | "compact" | No | Number formatting for values and axes. |
| unit | string | No | Unit appended to values (for example km or °C). |
| data | { x, y, series? }[] | Yes | Rows to plot or list; usually bound to a data-model path. |
| curve | boolean | No | - |
| highlight | string | No | - |
Used by templates
Fixed-schema templates that include LineChart. Try them in the playground.