Radar

A radar chart compares several measures at once: each measure is a spoke, and each series a shape through its values. Products against each other, or a day's rhythm around the clock.

Against the average

One RadarSeries per laptop, with the measures as XValue. Spokes start at the top and go clockwise; the radius is a value scale from zero shared by all spokes, fixed here with the y axis Max. Hover a spoke to compare every laptop's score on it. The older laptop's display was not tested, so its shape is open there instead of dropping to the center.

Radar chart with 6 items: New laptop: Performance 82, Battery 64, Display 71, Keyboard 90, Weight 55, Price 77; Old laptop: Performance 60, Battery 48, Keyboard 70, Weight 40, Price 52; Class average: Performance 75, Battery 75, Display 75, Keyboard 75, Weight 75, Price 75. New laptopOld laptopClass averagePerformanceBatteryDisplayKeyboardWeightPrice20406080100Use Left and Right to move between points, Up and Down to change series. Press Escape to leave.
Code
Razor
<RioChart TItem="LaptopScore" Items="scores" YAxis="new AxisOptions { Max = 100 }">
    <RadarSeries Name="New laptop" XValue="s => s.Measure" YValue="s => s.Laptop" />
    <RadarSeries Name="Old laptop" XValue="s => s.Measure" YValue="s => s.OldLaptop" />
    <RadarSeries Name="Class average" XValue="s => s.Measure" YValue="s => s.Average" />
</RioChart>

@code {
    record LaptopScore(string Measure, double Laptop, double OldLaptop, double Average); // NaN: not tested
}

Around the clock

Hours as spokes make a 24-hour clock: here a website's visits per hour on weekdays and at the weekend. Weekdays peak in office hours, weekends in the afternoon. (Set the y axis Min to start the scale above zero when the values sit in a narrow band.)

Radar chart with 12 items: Weekday: 00:00 208, 02:00 130, 04:00 130, 06:00 208, 08:00 722, 10:00 878, 12:00 1,012, 14:00 1,090; Weekend: 00:00 685, 02:00 520, 04:00 355, 06:00 234, 08:00 190, 10:00 234, 12:00 355, 14:00 520. WeekdayWeekend00:0002:0004:0006:0008:0010:0012:0014:0016:0018:0020:0022:000.5k1k1.5kUse Left and Right to move between points, Up and Down to change series. Press Escape to leave.
Code
Razor
<RioChart TItem="HourVisits" Items="hours">
    <RadarSeries Name="Weekday" XValue="h => h.Hour" YValue="h => h.Weekday" Format="N0" />
    <RadarSeries Name="Weekend" XValue="h => h.Hour" YValue="h => h.Weekend" Format="N0" />
</RioChart>

Good to know

  • Radar series cannot be mixed with other series types; the others are skipped with a warning.
  • With fewer than three categories there is no shape: two values are a line, one a dot.
  • Long category names are shortened with "…" (the tooltip shows them in full); names that would overlap are left out.
  • Clicks, selection, the legend, highlighting and keyboard navigation work as for line charts.

In JSON definitions

"type": "radar" (also "spider") with the measure as x and the value as y; use groupBy for one shape per product.

An unhandled error has occurred. Reload 🗙