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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfChart DoughnutSeries Title custom

Thread ID:

Created:

Updated:

Platform:

Replies:

147153 Sep 3,2019 10:23 AM UTC Sep 4,2019 04:08 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Mahmut Nedim
Asked On September 3, 2019 10:23 AM UTC

Hi,
First, I am using Doughnutseries of chart like picture below. As you see the all chart titles overlap. So all title are not readin. How can i solve this problem.
Secondly, I want to do not change SelectedDataPointColor. namely  whatever the color before select, should be same color after select.





Muneesh Kumar G [Syncfusion]
Replied On September 3, 2019 12:40 PM UTC

Hi Mahmut, 
 
We have analyzed your requirements, please find the solution below.  
 
Query 1: First, I am using Doughnutseries of chart like picture below. As you see the all chart titles overlap. So all title are not readin. How can i solve this problem. 
 
You can resolve this overlap problem by setting EnableSmartLabels in PieSeries as per the below code snippet.  
 
Code snippet 
 
<chart:PieSeries ItemsSource="{Binding Data}" 
                                                             XBindingPath="Expense" 
                                                             YBindingPath="Value"  
                                                             StartAngle="75" 
                                                             EndAngle ="435" 
                                                             EnableSmartLabels="True" 
                                                             ConnectorLineType = "Bezier"  
                                                             DataMarkerPosition = "OutsideExtended"> 
.. 
 
 
 
Query 2: Secondly, I want to do not change SelectedDataPointColor. namely  whatever the color before select, should be same color after select. 
 
You can achieve this requirement by raising SelectionChanging event in SfChart and set e.Cancel as true in args as per the below code snippet.  
 
Code snippet 
 
private void chart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e) 
{ 
    e.Cancel = true; 
} 
 
 
 
Please let us know if you have any other queries.  
 
Regards,   
Muneesh Kumar G  
 


Mahmut Nedim
Replied On September 3, 2019 02:36 PM UTC

Thank you very much for your answers. I have solved both of  :)

Muneesh Kumar G [Syncfusion]
Replied On September 4, 2019 04:08 AM UTC

Hi Mahmut,  
 
Thanks for the update. 
  
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
 
Thanks,  
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

Live Chat Icon For mobile
Live Chat Icon