shadcn.io is not affiliated with official shadcn/ui
Chart examples · Radar
A radar chart with a grid and circle for React
A radar chart with a circular grid and a dot on each point.
A radar chart with a round grid instead of the default polygon, which makes distances from the center easier to compare. Each point has a dot.
Preview
Installation
FAQ
How does the grid become circles?
PolarGrid sets gridType to circle, so the rings are circles. The spokes stay, because radialLines is still at its default.
How are the dots on each point drawn?
Radar sets dot to { r: 4, fillOpacity: 1 }. The series uses dataKey desktop, fill var(--color-desktop), and fillOpacity 0.6.
Where do the month names come from?
PolarAngleAxis sets dataKey to month, so the rim prints the full month from each row. There is no tick formatter in this file.
Where does the series color come from?
config maps desktop to var(--chart-1) and the label Desktop. ChartContainer writes --color-desktop for the Radar fill.
Related
- A radar chartA radar chart plotting one series across
- A radar chart with a grid and circle fill (no lines)A radar chart with circular grid rings
- A radar chart with a grid and circle fillA radar chart with a circular grid tinted
- A radar chart with dotsA radar chart with a dot on each data
- A radial chartA radial bar chart with one ring per
- A donut chartA donut chart of visitors by browser, a