ShellUI Logo
ShellUI

Radial Chart

Radial bar charts for progress and percentages

RadialChart shows values as radial bars, which suits progress and percentages from 0 to 100. Built on ApexCharts, with the same custom tooltips and themes as the other ShellUI charts.

Installation

shellui add radial-chart

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

Usage

<RadialChart TItem="Goal"
    Data="@_goals"
    Title="Quarterly goals"
    XValue="@(g => g.Name)"
    YValue="@(g => (decimal?)g.Percent)"
    Height="350px" />

@code {
    private List<Goal> _goals = new()
    {
        new("Revenue", 72), new("Signups", 88), new("Retention", 64)
    };

    record Goal(string Name, int Percent);
}

API Reference

PropertyTypeDefaultDescription
TItemGeneric type—The data item type
DataIEnumerable<TItem>?nullData collection to visualize
Namestring"Progress"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