Radar Chart

A spoke per category around a ringed grid, and a filled shape per series.

A spoke per category around a ringed grid, and a filled shape per series, for comparing a few series across the same measures. It needs at least three categories. See Charts for how data, colours and updates work in every chart.

Installation

bash
shellui-native add radar-chart

Platforms: MAUI · Avalonia. Also installs chart, the core every chart shares. The chart colours are theme tokens added with the charts, so in a project whose shell came from an older CLI, run shellui-native update shell first.

Usage

Basic

Maximum sets the value at the outer ring; by default it fits the data. ShowDots marks each point.

Rendered with ShellUI for Blazor
<ui:RadarChart Labels="Components, CLI, Docs, Theme, Tests, Build" Description="Commits by area" HeightRequest="280">
    <ui:ChartSeries Name="September" Values="80, 45, 60, 30, 55, 40" />
    <ui:ChartSeries Name="October" Values="95, 60, 85, 45, 70, 50" />
</ui:RadarChart>
Avalonia, running in your browser

MAUI and Avalonia

  • MAUI draws the chart in a GraphicsView; give it a HeightRequest. On touch screens a tap or a drag shows the tooltip.
  • Avalonia draws it in Render, in the control's own font; give it a Height. ChartSeries.Color is an Avalonia Color (Color.Parse("#E76E50")).

API

RadarChart

XAML children go to Series.

Property Type Default Description
Maximum double Fits the data The value at the outer ring; by default it fits the data.
FillOpacity double 0.5 Opacity of each series' shape.
ShowDots bool false A dot on every point.
Labels ChartLabels (MAUI) · ChartLabels? (Avalonia) null The category names along the axis, or the slice names of a pie.
ShowLegend bool true Shows the series (or slice) names with their colours under the chart.
ShowTooltip bool true Shows the values under the pointer (or the finger).
IsAnimated bool true Grows the chart in when it first appears.
ValueFormat string "#,0.##" A .NET number format for axis and tooltip values.
EmptyText string "No data" Shown when there are no values.
Description string — What the chart shows, for screen readers.
Method Description
Refresh() Redraws the chart. Call it after changing the numbers inside a series' Values.
PlayAnimation() Grows the chart in again.

ChartSeries

Property Type Default Description
Name string — Shown in the legend and the tooltip.
Values ChartValues Empty The numbers, one per category. In XAML, a comma-separated list.
Color Color? null Replaces the theme's chart color for this series.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.