shadcn.io is not affiliated with official shadcn/ui
Chart examples · Radar
A radar chart with a custom grid for React
A radar chart whose grid is reduced to one outer ring without spokes.
A radar chart with a lighter grid: polarRadius places one ring at 90 pixels and radialLines={false} removes the spokes, so only the outer circle frames the shape. Use it when the full grid is more than the chart needs.
Preview
Installation
FAQ
How is the grid reduced to one ring?
PolarGrid sets polarRadius to [90], radialLines to false, and strokeWidth to 1. That array is a single radius, so the grid is one ring and the spokes are off.
Where do the month names come from?
PolarAngleAxis sets dataKey to month, so the axis prints the stored names, January through June.
How is the shape filled?
Radar uses dataKey desktop, fill var(--color-desktop), and fillOpacity 0.6. config maps desktop to var(--chart-1) and the label Desktop.
What does the tooltip show?
ChartTooltipContent sets hideLabel, and cursor is false. The row is named Desktop from config, with that month's desktop value.
Related
- A radar chartA radar chart plotting one series across
- A radar chart with a grid and circleA radar chart with a circular grid and a
- A radar chart with no gridA radar chart without a grid, showing
- A radar chart with a grid and circle fillA radar chart with a circular grid tinted
- A radial chart with a gridA radial bar chart with circular grid
- A radar chart with lines onlyA radar chart drawing two series as