PieChart
CompletePie or donut chart. Slices with a value of zero or less are skipped, and legend entries hide slices.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
CenterText | string | Text shown in the middle of a donut. |
Class | string | Extra CSS classes added to the root element. |
Donut | bool | Draws a ring with an empty center. |
Height | Double | Maximum height of the grid body, for example 24rem (default 28rem with VirtualScroll). |
InnerRadius | Double | Donut hole size as a fraction of the radius (default 0.6). |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
ShowDataLabels | bool | Writes the value on each mark (bars, line points, pie slices). |
ShowExport | bool | Adds buttons that save the chart as a PNG or SVG image. |
ShowLegend | bool | Shows the clickable legend. |
Slices | IEnumerable<ChartSlice> | Data: ChartSlice(label, value). |
Style | string | Inline style added to the root element. |
ValueFormat | string | Number format for axis and tooltips, e.g. N0 or P1. |
Width | Double | Skeleton: any CSS length. Charts: drawing width in SVG units (the chart still scales to its container). |
Events
| Event | Type | Description |
|---|---|---|
OnSliceClick | EventCallback<ChartSlice> |
Package
PieChart is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.
Send feedbackVersion 1.0.3