Components
Components
DonutChart
Part-to-whole radial chart with a required summary and focusable slices.
newfree
Install
@hewnui/ui · hewnui
DonutChart is the radial sibling of Area and Bar: same status frames, same tooltip, slices you can Tab through.
Usage
Preview
Accessibility
- The SVG is
role="img"named by the requiredsummary - Every slice is focusable and labelled
"{name}: {value}" - Focus opens the same tooltip as hover
status="loading"and empty (sum ≤ 0) userole="status";status="error"usesrole="alert"
API reference
Props for DonutChart from @hewnui/ui/donut-chart. Generated from component types — not hand-written.
Prop
Type