The InnerRadius property can be used to leave a blank inner space in the FlexPie, creating a Donut Pie Chart. The blank space can be used to display additional data.
The following image shows a donut FlexPie.
The following code example demonstrates how to set this property in C#. This example uses the sample created in the Quick Start section.
C# |
Copy Code
|
---|---|
//set donut chart
chart.InnerRadius = 0.5;
|
XAML |
Copy Code
|
---|---|
<c1:FlexPie x:Name="chart" ItemsSource="{Binding Data}" BindingName="Name" Binding="Value" InnerRadius="0.5"/> |