Skip to content
Component

Chart

Lightweight, responsive SVG charts for dashboards and data summaries. Use the chart family for trends, comparisons, and composition without adding a charting dependency.

Line chart

A highlighted trend with a second semantic series and accessible point labels.

Weekly signups

New accounts over the last seven days

926946230MonTueWedThuFriSatSun
SignupsPrevious week
Weekly signups
Signups, Mon42
Signups, Tue68
Signups, Wed54
Signups, Thu86
Signups, Fri73
Signups, Sat92
Signups, Sun78
Previous week, Mon42
Previous week, Tue60
Previous week, Wed38
Previous week, Thu86
Previous week, Fri65
Previous week, Sat76
Previous week, Sun78

Bar chart

Use bars for compact comparisons between categories or periods.

New customers

926946230MonTueWedThuFriSatSun
New customers
Customers, Mon42
Customers, Tue68
Customers, Wed54
Customers, Thu86
Customers, Fri73
Customers, Sat92
Customers, Sun78

Donut chart

A composition summary with a center total and compact legend.

Team distribution

128Total
Design42Engineering56Operations30
Values
Team distribution
Values, Design42
Values, Engineering56
Values, Operations30

Loading and empty states

Loading

Loading

Empty

No chart data available.
Empty

Charts use theme tokens, remain responsive inside narrow cards, and include a screen-reader table alternative. Data point marks can receive keyboard focus for readable values.

API reference

LineChart · seriesNone
ChartSeries[]

Named data series of label/value points, drawn as connected lines.

LineChart · showPointstrue
boolean

Render focusable point markers on each line.

BarChart · seriesNone
ChartSeries[]

Named data series of label/value points, drawn as grouped bars.

DonutChart · dataNone
ChartPoint[]

Single set of label/value points, drawn as donut segments.

DonutChart · centerLabelNone
string

Optional label rendered in the donut center.

shared · title / descriptionNone
string

Accessible heading and supporting text for every chart.

shared · legendfalse
boolean

Show a compact series legend.

shared · formatValueNone
(value: number) => string

Format values in labels and the accessible table.

shared · loading / emptyfalse
boolean

Show a loading composition or an empty state instead of the graphic.

classNameNone
string

Additional classes applied to the component root.