FlexPie > Exploded Pie Chart |
The Offset property can be used to push the pie slices away from the center of FlexPie, producing the exploded Pie Chart. This property accepts a double value to determine how far the pie slices should be pushed from the center.
Here is the code snippet:
<Grid> <Chart:C1FlexPie x:Name="flexPie" InnerRadius="0.5" Offset="0.5" Header="Fruit Sales Data" Footer="2015" LegendOrientation="Horizontal" LegendPosition="Bottom" SelectionMode="Point" SelectedItemPosition="Top" SelectedItemOffset="2" Margin="95,99,328,275" Binding="April" BindingName="Fruit" ItemsSource="{Binding DataContext.Data}"> <Chart:C1FlexPie.SelectionStyle> <Chart:ChartStyle Stroke="Red" StrokeThickness="2"/> </Chart:C1FlexPie.SelectionStyle> <Chart:C1FlexPie.DataLabel> <Chart:PieDataLabel Content="{}{y}"/> </Chart:C1FlexPie.DataLabel> </Chart:C1FlexPie> </Grid>
C# |
Copy Code
|
---|---|
flexPie.Offset = 0.5; |