HeroUI Pro

Radial Chart

A radial chart for gauge, progress ring, and circular data visualizations with customizable arcs and labels.

Usage

Gauge

Gauge Grid

Progress Ring

With Legend

CSS Classes

Element Classes

  • .radial-chart — Root container wrapping ResponsiveContainer and the Recharts chart.

Recharts Theming

The following CSS rules target Recharts internal class names to apply HeroUI design tokens automatically:

  • .radial-chart .recharts-tooltip-cursor — Tooltip cursor. Hidden for radial charts.
  • .radial-chart .recharts-tooltip-wrapper — Tooltip wrapper. Elevated z-index to render above center content.
  • .radial-chart .recharts-radial-bar-background-sector — Bar background track. Uses the separator token for a subtle fill.

API Reference

RadialChart

The root wrapper. Renders a ResponsiveContainer + Recharts RadialBarChart with HeroUI CSS theming applied automatically.

PropTypeDefaultDescription
dataRecord<string, number | string>[]Chart data — array of objects. Each entry becomes a concentric ring.
heightnumber300Chart height in pixels.
widthnumber | `${number}%` "100%"Chart width in pixels or percentage string.
barSizenumber10Bar thickness in pixels.
innerRadiusnumber | string"30%"Inner radius of the bar area.
outerRadiusnumber | string"80%"Outer radius of the bar area.
startAnglenumber90Start angle in degrees.
endAnglenumber-270End angle in degrees.
childrenReactNodeRecharts child components (RadialChart.Bar, RadialChart.Cell, etc.).

Also supports all native div HTML attributes.

RadialChart.Bar

Re-exported Recharts RadialBar component. Follows the Recharts RadialBar API.

RadialChart.Cell

Re-exported Recharts Cell component. Follows the Recharts Cell API.

RadialChart.AngleAxis

Re-exported Recharts PolarAngleAxis component. Follows the Recharts PolarAngleAxis API.

RadialChart.Tooltip

Re-exported Recharts Tooltip component. Follows the Recharts Tooltip API. Use with RadialChart.TooltipContent for styled tooltips.

RadialChart.TooltipContent

Pre-built tooltip renderer for Recharts. Pass as the content prop of RadialChart.Tooltip. See ChartTooltip for full props.

On this page