Components
Components
AreaChart
Filled area chart for cumulative or volume trends.
newfree
Install
@hewnui/ui · hewnui
AreaChart fills under each series with a translucent accent tint and draws the same monotone stroke as LineChart.
Usage
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"
API reference
Props for AreaChart from @hewnui/ui/area-chart. Generated from component types — not hand-written.
Prop
Type