Pie Chart
Part-to-whole distribution with labels and tooltips.
Basic
Default pie with labels
razor
<PieChart Data="data" Height="350px" />
@code {
private List<ChartDataPoint> data = new()
{
new("Active", 540),
new("Discharged", 320),
new("Pending", 85),
new("Critical", 42),
new("Transferred", 28)
};
}Without labels
ShowLabels="false" uses legend only
razor
<PieChart Data="data"
ShowLabels="false"
Height="350px" />