shadcn.io is not affiliated with official shadcn/ui
Chart examples · Radar
A radar chart with no grid for React
A radar chart without a grid, showing only the shape, its dots and the labels.
A radar chart without a grid, leaving only the shape, its dots and the month labels. Use it when the profile is the point and the scale isn't.
Preview
Installation
FAQ
How do I remove the radar grid?
Leave PolarGrid out. This file renders PolarAngleAxis and one Radar only, so the month names and the shape are the whole chart.
How are the points marked without a grid?
Radar sets dot to { r: 4, fillOpacity: 1 }, so each month is a solid dot. dataKey="desktop" and fill="var(--color-desktop)" color the polygon, with fillOpacity={0.6}.
Why doesn't the tooltip repeat the month?
ChartTooltipContent sets hideLabel, which hides the tooltip title. PolarAngleAxis already shows month. The row is still Desktop from config, plus the value. cursor={false} turns the hover cursor off.
Where does the fill color come from?
The desktop entry in config sets label to Desktop and color to var(--chart-1). ChartContainer writes that as --color-desktop, and Radar reads it with fill="var(--color-desktop)".
Related
- A radar chartA radar chart plotting one series across
- A radar chart with lines onlyA radar chart drawing two series as
- A radar chart with a custom gridA radar chart whose grid is reduced to
- A radar chart with dotsA radar chart with a dot on each data
- A pie chart with no separatorA pie chart without the stroke between
- A simple area chartA single-series area chart with a smooth