Components
Components
AreaChart
Filled area chart for cumulative or volume trends.
newfree
pnpm add @komponents/uiCanonical TypeScript source · tree-shakeable subpathsAreaChart fills under each series with a translucent accent tint and draws the same monotone stroke as LineChart.
Usage
Preview
Accessibility
- The SVG is
role="img"named by the requiredsummary, which is also rendered as ansr-onlycaption - Every point is focusable and labelled
"{series}: {x}, {y}", so the series can be read with Tab alone - Focus opens the same tooltip as hover, and blur closes it
- Axis ticks and gridlines are
aria-hidden— the summary carries the shape of the data status="loading"andstatus="empty"announce throughrole="status";status="error"usesrole="alert"