Pie, donut and radial bar

Pie and donut charts, and radial bars, for Blazor: the x value names each slice and the legend lists the slices. Click a legend item to hide a slice.

Pie

Percentages inside slices that fit; small slices get outside labels with leader lines. GroupSmallSlices merges tiny ones into "Other", which gets one legend item; hover it to see what it holds, click it to hide it (its id in HiddenSeries is SeriesOptions.OtherSliceKey).

Revenue by category, this year. Pie chart with 6 items: Shoes 412, Clothing 236, Camping 148, Accessories 97, Bags 31, Other 15. Revenue by category, this yearShoesClothingCampingAccessoriesBagsOther412 k€236 k€148 k€97 k€15 k€31 k€Use the arrow keys to move between slices. Press Escape to leave.
Code
Razor
<RioChart TItem="Share" Title="Revenue by category, this year">
    <PieSeries Items="revenue" XValue="s => s.Name" YValue="s => s.Value" GroupSmallSlices="0.03" Format="0 k€" />
</RioChart>

Donut

A pie with a hole, and the total in the middle.

Donut chart with 7 items: Shoes 412, Clothing 236, Camping 148, Accessories 97, Bags 31, Gift cards 9, Socks 6. ShoesClothingCampingAccessoriesBagsGift cardsSocks412 k€236 k€148 k€97 k€939 k€Total6 k€9 k€31 k€Use the arrow keys to move between slices. Press Escape to leave.
Code
Razor
<RioChart TItem="Share" Legend="new LegendOptions { Position = LegendPosition.Right }">
    <DonutSeries Items="revenue" XValue="s => s.Name" YValue="s => s.Value" Format="0 k€" />
</RioChart>

Half donut and nested rings

Start and end angles make a half donut that uses the full height. Several pie series become rings: here revenue per sales channel, this year outside and last year inside.

Donut chart with 3 items: Web 214, App 96, Marketplace 38. WebAppMarketplace214 k€96 k€348 k€Total38 k€Use the arrow keys to move between slices. Press Escape to leave.
Donut chart with 3 items: Web 214, App 96, Marketplace 38. WebAppMarketplace214 k€38 k€96 k€Use the arrow keys to move between slices. Press Escape to leave.
Code
Razor
<DonutSeries Items="channels" XValue="s => s.Name" YValue="s => s.Value" StartAngle="-90" EndAngle="90" />

<PieSeries Items="channels" Name="2026" ... InnerRadius="0.35" />   @* outer ring *@
<PieSeries Items="lastYear" Name="2025" ... />                    @* inner ring *@

Radial bars

One track per category, filled up to Max.

This month's goals. Radial bar chart with 4 items: Revenue 87, Orders 74, New customers 41, Reviews 92. This month's goalsRevenueOrdersNew customersReviewsRevenue 87%Orders 74%New customers 41%Reviews 92%Use the arrow keys to move between slices. Press Escape to leave.
Code
Razor
<RadialBarSeries Items="goals" XValue="s => s.Name" YValue="s => s.Value" Max="100" Format="0'%'" />
An unhandled error has occurred. Reload 🗙