shadcn.io is not affiliated with official shadcn/ui
A filled radar shape with a dot on each month, so the measured points stand out from the area between them.
Preview
Installation
FAQ
How do I show a dot on each radar point?
Set dot on Radar. This demo uses r of 4 and fillOpacity of 1, so each vertex is a solid dot. Radar leaves dot off unless you pass it.
How is the polygon colored?
fill is var(--color-desktop). ChartContainer writes that from the desktop entry in config, where label is Desktop and color is var(--chart-1). fillOpacity={0.6} keeps the PolarGrid rings visible through the shape.
Where do the month labels come from?
PolarAngleAxis uses dataKey="month". Each row of chartData is one spoke, January through June, and desktop on that row is the dot's value. Add a row and the polygon gains a corner.
What does the grid draw?
PolarGrid draws the concentric rings and the spokes. This demo doesn't pass grid props, so you get that default polygon grid. The rings are the scale behind each dot.
Related
- A radar chartA radar chart plotting one series across
- A radar chart with lines onlyA radar chart drawing two series as
- A line chart with dotsA line chart with a dot on every data
- A radar chart with multiple dataA radar chart overlaying desktop and
- A radar chart with a grid and circleA radar chart with a circular grid and a
- A simple area chartA single-series area chart with a smooth