Articles in this section
Category / Section

How to explode the pie chart slice on touch in Xamarin.Forms

1 min read

A Pie Chart in Xamarin.Forms with explosion can be considered as an exploded pie chart. You can change the pie explosion settings manually with mouse click by enabling the ExplodeOnTouch property of the series as shown in the following code sample.

 

<syncfusion:SfChart  HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" >
            <syncfusion:PieSeries  ItemsSource="{Binding Data}" ExplodeOnTouch="True" XBindingPath="Category" YBindingPath="Value" >
                <syncfusion:PieSeries.ColorModel>
                    <syncfusion:ChartColorModel Palette="Natural"/>
                </syncfusion:PieSeries.ColorModel>
                <syncfusion:PieSeries.DataMarker>
                    <syncfusion:ChartDataMarker ShowLabel="True"/>
                </syncfusion:PieSeries.DataMarker>
            </syncfusion:PieSeries>
        </syncfusion:SfChart>

Output

Pie Chart in Xamarin.Forms Explode by touching

 

See also


How to explode the specific pie segment in Xamarin.Forms

How to explode all segments in Xamarin.Forms pie chart

 

How to customize the angle of pie chart in Xamarin.Forms

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please  to leave a comment
Access denied
Access denied