ShellUI Logo
ShellUI

Radar Chart

Radar charts for comparing values across categories

RadarChart compares values across several categories on radial axes. Built on ApexCharts, with the same custom tooltips and themes as the other ShellUI charts.

Installation

shellui add radar-chart

shellui add also installs chart and its styles, and adds the Blazor-ApexCharts NuGet package to your project.

Usage

<RadarChart TItem="Skill"
    Data="@_skills"
    Title="Team skills"
    Name="Score"
    XValue="@(s => s.Area)"
    YValue="@(s => (decimal?)s.Score)"
    Height="400px" />

@code {
    private List<Skill> _skills = new()
    {
        new("Frontend", 80), new("Backend", 70), new("DevOps", 55),
        new("Design", 65), new("Testing", 75)
    };

    record Skill(string Area, int Score);
}

API Reference

PropertyTypeDefaultDescription
TItemGeneric type—The data item type
DataIEnumerable<TItem>?nullData collection to visualize
Namestring"Data"Series name shown in the tooltip
XValueFunc<TItem, object>?nullCategory label for each item
YValueFunc<TItem, decimal?>?nullNumeric value for each item
ThemeChartThemeDefaultColor theme (Default, Colorful, Monochrome)
Titlestring?nullChart title
Subtitlestring?nullChart subtitle
Heightstring?"400px"Chart height
Widthstring?"100%"Chart width
ShowLegendbooltrueShow the legend
ShowToolbarboolfalseShow the ApexCharts toolbar
Classstring?nullAdditional CSS classes

On this page