RadarChart

RadarChart is a component for drawing radar charts to compare multiple sets of data.

Usage

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

Composition

Change Size

Change Color Scheme

Change Color

Add Radius Axis

To add the radius axis, set withRadiusAxis to true. The default is false.

Change Radius Axis Angle

To change the radius axis angle, set radiusAxisProps.angle to the desired angle. The default is 90.

Add Legend

To add the legend, set withLegend to true. To change the placement, set legendProps.placement.

Add Label

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

Change Grid Type

To change the grid type, set gridProps.gridType to "polygon" or "circle".

Fill Grid

Display Line Only

Add Dot

To display dots, set dot or radarProps.dot to true.

Sync

To sync charts, set syncId to a string.

Format

To format the chart, use formatter or tickFormatter etc.

Add Angle Axis Line

To display the axis line of the angle axis, set angleAxisProps.axisLine to true.

Add Angle Axis Tick Line

To display tick lines of the angle axis, set angleAxisProps.tickLine to true.

Set Domain

To set the value range, set radiusAxisProps.domain to an array in radiusAxisProps. To set the ticks, set radiusAxisProps.ticks to an array in radiusAxisProps.

Add Tooltip Cursor

To display the tooltip cursor, set tooltipProps.cursor to true.

Hide Angle Axis

To hide the angle axis, set withAngleAxis to false. The default is true.

Hide Grid

To hide the grid, set withGrid to false. The default is true.

Hide Active Dot

To hide active dots, set activeDot or radarProps.activeDot to false.

Hide Tooltip

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

Customize Dot

Customize Active Dot

Customize Label

Customize Tooltip Cursor

Props