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.
Unfortunately, activation email could not send to your email. Please try again.

Doughnut/Pie: How does LabelFormat of DataMarkerLabelStyle work?

Thread ID:





120050 Aug 26,2015 11:58 AM Aug 27,2015 08:02 AM Xamarin.Forms 1
Tags: SfChart
Michael Mour
Asked On August 26, 2015 11:58 AM

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 08:02 AM

 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.

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.