RadialChart

RadialChart is a component for drawing radial charts to compare multiple sets of data.

Usage

import { RadialChart } from "@yamada-ui/react"
<RadialChart.Root>
  <RadialChart.Radial>
    <RadialChart.LabelList />
  </RadialChart.Radial>
  <RadialChart.Label />
  <RadialChart.Grid />
  <RadialChart.RadiusAxis />
  <RadialChart.AngleAxis />
  <RadialChart.Tooltip />
  <RadialChart.Legend />
</RadialChart.Root>

Composition

Change Size

Change Color

Change Sector Colors

Add Legend

To add the legend, set withLegend to true. To change placement, set legendProps.placement to "start-start", "end-end", etc. The default is "start-end".

Add Label

To display labels, set label or radialProps.label to true. The default is false.

Add Label List

To display label list, set labelList or radialProps.labelList to true. The default is false.

Add Center Label

Change Start Angle

To change the start angle, set startAngle to a number. The default is 90.

Change End Angle

To change the end angle, set endAngle to a number. The default is -270.

Change Inner Radius

To change the inner radius, set innerRadius to a number or string. The default is "20%".

Change Outer Radius

To change the outer radius, set outerRadius to a number or string. The default is "90%".

Change Corner Radius

To round sector corners, set cornerRadius to a number.

Change Gap

To change the gap between bars, set barCategoryGap to a number or string. The default is "10%".

Stacked

Sync

To sync charts, set syncId to a string.

Format

To format the chart, use formatter.

Hide Tooltip

To hide the tooltip, set withTooltip to false. The default is true.

Props