Xuni Product Documentation - Xamarin.Forms
Exploded Pie Chart

The Offset property can be used to push the pie slices away from the center of the FlexPie, producing an exploded pie chart. This property accepts a decimal value to determine how far the pie slices should be pushed from the center.

The image below shows an exploded FlexPie.

The following code examples demonstrate how to set this property in C# and XAML. These examples use the sample created in the Quick Start section.

In Code

C#
Copy Code
chart.Offset = 0.2;

In XAML

XAML
Copy Code
<xuni:FlexPie x:Name="chart" ItemsSource="{Binding Data}" BindingName="Name" Binding ="Value"
 Offset="0.2" Grid.Row="1" Grid.ColumnSpan="2">
</xuni:FlexPie>

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback