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

Doughnut/Pie: How does LabelFormat of DataMarkerLabelStyle work?

Thread ID:





120050 Aug 26,2015 03:58 PM UTC Aug 27,2015 12:02 PM UTC Xamarin.Forms 1
Tags: SfChart
Michael Mour
Asked On August 26, 2015 03:58 PM UTC

I'm trying to change the label format of a DoughnutSeries to something like this: 2.157,38 €
CurrentCulture and CurrentUICulture are both set to de-DE with the result that formatting in Xamarin Forms works as expected.

I tried setting LabelFormat of the DataMarkerLabelStyle to different formats but none of them work as expected:
C2 -> C2158 (this is what I use as StringFormat in my bindings in XF)
#,##0.00 € -> 2,157.38 € (point and comma are inverted, seems like it is using en-US?)

How can I achieve my desired format? Thanks!

Yuvaraj Palanisamy [Syncfusion]
Replied On August 27, 2015 12:02 PM UTC

 Hi Michael,

Thanks for using Syncfusion products.

We have achieved your requirement in the workaround. We have written customer renderer for each platforms to customize the individual data marker labels. The DataMarkerLabelCreated event which we have declared in ChartExt class used to get the notification when the new data marker label created. Please find the workaround from the below location,

Sample: http://www.syncfusion.com/downloads/support/forum/120050/ze/CustomLabel1860355490



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