Components

Neon Donut Chart

Recharts-powered donut/ring chart with per-segment neon glow, interactive center label, hover dimming, auto color palette, and a custom legend.

npx neonblade add neon-donut-chart

Traffic sources — auto palette, center label

Direct
Organic
Referral
Social
Email

System status — preset colors

Online
Idle
Offline

Budget allocation — custom colors, pink accent

Engineering
Marketing
Operations
R&D

Props Configuration

PropTypeDefaultDescription
dataNDCSegment[]-Array of segments. Each segment has name, value, and optional color.
heightnumber260Chart height in px.
innerRadiusstring | number"62%"Inner hole radius. Use percentage string (e.g. '60%') or absolute px number.
outerRadiusstring | number"88%"Outer ring radius. Use percentage string or absolute px number.
glowIntensity"none" | "low" | "medium" | "high""medium"Neon glow spread on each segment.
paddingAnglenumber2Gap between segments in degrees.
cornerRadiusnumber4Corner radius on each segment arc end in px.
centerLabelbooleantrueShow a center label with the hovered segment name + value (or total when nothing is hovered).
color"cyan" | "pink" | "green" | string"cyan"Primary accent color — used for the total label and fallback tooltip.
legendbooleanfalseShow a custom inline legend below the chart.
classNamestring-Additional className on the wrapper div.