We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Detect Pie Chart Click

Thread ID:

Created:

Updated:

Platform:

Replies:

142174 Jan 23,2019 03:34 AM UTC Jan 23,2019 06:15 AM UTC UWP 1
loading
Tags: SfChart
Hung
Asked On January 23, 2019 03:34 AM UTC

Hi, I want to be able to detect when user has clicked on a pie piece and then explode that piece out. I know how to explode a pie piece out but cant figure out how to detect whe na user has clicked on a pie segment

Muneesh Kumar G [Syncfusion]
Replied On January 23, 2019 06:15 AM UTC

Hi Hung,  
 
Thanks for your using Syncfusion products.  
 
We have analyzed your requirement and you can achieve this by setting ExplodeOnMouseClick as true in series as per the below code snippet.  
 
Code snippet 
<chart:SfChart   x:Name="chart" > 
 
            <chart:PieSeries XBindingPath="XValue"  
                             ExplodeOnMouseClick="True" 
                             YBindingPath="YValue" ItemsSource="{Binding Data}"/> 
        </chart:SfChart> 
 
Screenshot: 
 
 
 
 
 
Hope it helps you.  
   
Regards,   
Muneesh Kumar G.    
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;