Charts

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.

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