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

PieChart Adornements / Formatconverter

Thread ID:





117238 Sep 12,2014 04:48 PM UTC Sep 23,2014 04:49 AM UTC Windows Phone 3
Tags: Chart
Rüdiger Heicappell
Asked On September 12, 2014 04:48 PM UTC

How can I apply a format converter in a pie chart adornement?

Sheik Syed Abthaheer M [Syncfusion]
Replied On September 15, 2014 03:47 PM UTC

Hi Rudiger,

Thanks for using Syncfusion products.

You can apply the adornment label format by using the SegmentLabelFormat property of ChartAdonrmentInfo as shown in the below code snippet.

Code Snippet [Xaml]:

<chart:ChartAdornmentInfo AdornmentsPosition="TopAndBottom" SegmentLabelFormat="0.00"  ShowLabel="True" SegmentLabelContent="YValue">

Please let us know if you have any queries.

M. Sheik

Rüdiger Heicappell
Replied On September 18, 2014 08:08 PM UTC

I should explain my query more in detail: I want to to format the label to 2 digits and an percent sign attached Using a textbox, this can be done by a format converter as follows:

<TextBlock   Grid.Row="0" Grid.Column="2" x:Name="ShowPercent" FontSize="18" 
                                                 Text="{Binding Percent,
                                                 Converter={StaticResource StringFormatConverter}, 
                                                 ConverterParameter='{}{0:P}'}" />

The question is: how can I format the label of the pie chart in the same way as with the textbox?

Sumathi Jayaraj [Syncfusion]
Replied On September 23, 2014 04:49 AM UTC

Hi Rudiger,

Thanks for your update.

We have analyzed your query and we have prepared a sample as per your requirements. Please find the sample in the following attachment.

Please let us know if you have any queries.

Sumathi J

Attachment: PieSeriesWP_448a7153.zip


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