Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationRadialBarChart

RadialBarChart

A circular chart component for displaying comparative data in radial bars, ideal for showing progress, metrics, or hierarchical data.

Install Dependencies

npx
quickcode-ui add RadialBarChart

Examples

Default

Default

Project Status Overview

Current distribution of project tasks

Performance Metrics

Performance Metrics

Department Performance

Quarterly performance scores by department

Props

ChartContainer

PropTypeDefaultDescription
configChartConfigConfiguration object mapping data keys to labels and colors
childrenReact.ReactElementSingle chart component to render
classNamestringundefinedAdditional CSS classes

RadialBarChart

PropTypeDefaultDescription
dataany[]Array of data objects to display
innerRadiusstring | number0Inner radius of the radial bars
outerRadiusstring | number100%Outer radius of the radial bars
startAnglenumber0Starting angle of the chart in degrees
endAnglenumber360Ending angle of the chart in degrees
classNamestringundefinedAdditional CSS classes

RadialBar

PropTypeDefaultDescription
dataKeystringKey from data object to plot
cornerRadiusnumber0Corner radius of the bars
labelboolean | objectfalseConfiguration for bar labels
backgroundboolean | objectfalseBackground configuration for bars

PolarAngleAxis

PropTypeDefaultDescription
type"number" | "category""category"Type of axis scale
domain[number, number][0, "auto"]Domain of the axis
tickboolean | objecttrueTick configuration

ChartTooltip

PropTypeDefaultDescription
contentReact.ComponentTypeChartTooltipContentCustom tooltip component
cursorboolean | objecttrueCursor configuration on hover

ChartTooltipContent

PropTypeDefaultDescription
activebooleanfalseWhether tooltip is active
payloadany[][]Data payload for tooltip
labelstring | numberundefinedLabel to display
hideLabelbooleanfalseHide the label section
classNamestringundefinedAdditional CSS classes
Last updated on