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 (1)
Please  to leave a comment
SG
Steve Good
Can more than one piece of the pie be exploded at one time? As far as I can tell, it's one piece, all pieces or none. Thanks!
YP
Yuvaraj Palanisamy
Currently we have support for exploding single segment or all segments at a time using ExplodeIndex and ExplodeAll properties of PieSeries. But we are not having support for exploding multiple segments. Hence we consider this to be a feature and it will be published in any of our upcoming release. Thanks, yuvaraj
Access denied
Access denied