LineChart
Visualize trends across ordered data using one or more line series.
Basic usage
Sort periods or stages before passing data. Use axisFormat for compact ticks and valueFormat for full values in the data table. In SolidStart, load the module that imports @egcs/newui/charts on the client. Export the chart as default and use clientOnly(() => import("./my-chart")) in the route.
Loading chart
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
data | Datum[] | — |
title / label | string / (datum: Datum) => string | — |
series | { label, value, tone? }[] | — |
height | number (px) | 260 |
valueFormat / axisFormat | (value: number) => string | — |
labels | ChartLabels | — |