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

Pie chart and Doughnut chart Smart label Number formatting needs to do

Thread ID:

Created:

Updated:

Platform:

Replies:

149267 Nov 20,2019 09:42 AM UTC Nov 21,2019 07:30 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Selvaraj, Tamilmani
Asked On November 20, 2019 09:42 AM UTC

One of my application I needs Pie chart and Doughnut chart's Smart label Number formatting needs to do.
Currently I cannot able to do. Can you guys help me out.

Hemalatha Marikumar [Syncfusion]
Replied On November 21, 2019 07:30 AM UTC

Hi Selvaraj Tamilmani, 
  
Greetings from Syncfusion. 
  
We have validated your query and we suspect that your requirement to show the DataMarkerLabel with custom LabelFormat. You can customize the DataMarkerLabel by setting the LabelFormat for DataMarkerLabelStyle which is available in ChartDataMarker as per in below code snippet 
  
Code Snippet [Xaml]: 
  
<chart:PieSeries ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue"> 
                    <chart:PieSeries.DataMarker> 
                        <chart:ChartDataMarker ShowLabel="True" ShowMarker="False"> 
                            <chart:ChartDataMarker.LabelStyle> 
                                <chart:DataMarkerLabelStyle FontSize="15" LabelFormat="$##"/> 
                            </chart:ChartDataMarker.LabelStyle> 
                        </chart:ChartDataMarker> 
                    </chart:PieSeries.DataMarker> 
    </chart:PieSeries> 
  
  
And we have prepared a sample based on your requirement and you can download the sample from the below link. 
  
  
Screenshot: 
  
 
  
  
If we misunderstood your requirement, please explain in detail your exact requirement to provide a better solution at earliest. 
  
Please let us know if you need any further assistance. 
  
Regards, 
Hemalatha M. 


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