BarChart
Compare categorical values with grouped bars and an accessible data table.
Basic usage
Pass records in display order and give each series a numeric accessor. Open View data to read exact values by category. 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 | — |