Charts

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.

PropValues and behaviorDefault
dataDatum[]—
title / labelstring / (datum: Datum) => string—
series{ label, value, tone? }[]—
heightnumber (px)260
valueFormat / axisFormat(value: number) => string—
labelsChartLabels—