shadcn.io is not affiliated with official shadcn/ui
Chart examples · Radar
A radar chart with a grid and circle fill (no lines) for React
A radar chart with circular grid rings, no spokes and a dot on each point.
The minimal circular radar: the grid is round rings without spokes, and the shape has a dot on each month. Use it when the overall profile matters more than reading each axis.
Preview
Installation
FAQ
How is the grid drawn as circles?
PolarGrid sets gridType to circle and radialLines to false. The rings are circles, and the spokes from the center are off.
How are the dots on the shape drawn?
Radar sets dot to { r: 4, fillOpacity: 1 }. The series uses dataKey desktop, fill var(--color-desktop), and fillOpacity 0.6. The dot is opaque. The polygon fill is 0.6.
Where do the month names come from?
PolarAngleAxis sets dataKey to month, so the rim prints January through June. There is no tick formatter in this file.
Where does the fill color come from?
config maps desktop to var(--chart-1) and the label Desktop. ChartContainer writes --color-desktop, which Radar uses for fill.
Related
- 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 lines onlyA radar chart drawing two series as
- A radar chartA radar chart plotting one series across
- A pie chart with no separatorA pie chart without the stroke between
- A simple area chartA single-series area chart with a smooth