EEnterUI
DocsComponentsThemesDonation
Get Started
      • BarChart
      • DonutChart
      • Legend
EnterUIDocsData AnalyticsMetrics and ChartsChart PrimitivesDonutChart
Data AnalyticsUpdated 6 May 2026

DonutChart

Compact SVG donut for share-of-total visuals like release channels and quota usage.

DonutChart visualises share-of-total values inside a circular ring. It uses pure SVG without any chart engine and stays accessible through an explicit label.

#Default usage

Release channels

Pair with a Legend to caption colour mapping.

Code
<DonutChart
  data={[
    { label: "Stable", value: 62 },
    { label: "Beta", value: 28 },
    { label: "Alpha", value: 10 },
  ]}
  label="Release channel mix"
/>

#Import

Code
import { DonutChart } from "@froggdesign/enter-ui-react";

#Accessibility

Provide an aria-label or label so screen readers announce the chart. When none is given, the SVG is marked aria-hidden for decorative use.

#API

  • data: array of { value, color?, label? } slices.
  • size: outer pixel size (default 120).
  • strokeWidth: ring thickness (default 14).
  • centerLabel: optional ReactNode rendered in the centre.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousBarChart
NextLegend

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling