shadcn.io is not affiliated with official shadcn/ui
Chart examples · Radar
A radar chart with a grid filled for React
A radar chart with its polygon grid tinted in the series color.
A radar chart whose polygon grid is tinted with the series color, adding depth behind the shape. The grid's className sets the fill and opacity.
Preview
Installation
FAQ
How is the grid tinted?
PolarGrid keeps polygon rings and sets className to fill-(--color-desktop) opacity-20. The rings are filled with the desktop color at 20% opacity.
How is the data shape filled?
Radar uses dataKey desktop, fill var(--color-desktop), and fillOpacity 0.5. config maps desktop to var(--chart-1) and the label Desktop, which becomes --color-desktop.
Where do the month names come from?
PolarAngleAxis sets dataKey to month, so the rim prints the stored names, January through June. Radar in this file has no dot.
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 circle fillA radar chart with a circular grid tinted
- An area chart with gradient fillA stacked area chart whose areas fade
- A radar chart with a custom gridA radar chart whose grid is reduced to
- A radar chart with no gridA radar chart without a grid, showing
- A simple pie chartA pie chart of visitors by browser, each