Xamarin.Forms | ComponentOne
Controls / FlexPie / Features / Donut Pie Chart
In This Topic
    Donut Pie Chart
    In This Topic

    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.

    In Code

    C#
    Copy Code
    //set donut chart
    chart.InnerRadius = 0.5;
    

    In XAML

    XAML
    Copy Code
    <c1:FlexPie x:Name="chart" ItemsSource="{Binding Data}" BindingName="Name"
        Binding="Value" InnerRadius="0.5"/>