Hello, may I ask how to display the value in RadPieChart with the% sign

1 Answer 85 Views
Chart
guo
Top achievements
Rank 1
Iron
guo asked on 16 Jun 2021, 08:55 AM
Please see the attachment I want to change 85 to 85%

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 16 Jun 2021, 01:08 PM

Hello,

You can add a percentage to the Pie Series Label using LabelFormat property: 

<telerikChart:RadPieChart>
    <telerikChart:RadPieChart.Series>
        <telerikChart:PieSeries ShowLabels="True"
                                LabelFormat="{}{0}%"
                                RadiusFactor="0.45"
                                ValueBinding="Value"
                                ItemsSource="{Binding Data1}" />
    </telerikChart:RadPieChart.Series>
</telerikChart:RadPieChart>

 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

guo
Top achievements
Rank 1
Iron
commented on 17 Jun 2021, 12:34 AM

I received it, thank you, and ask the next question, can you remove the white border of the label?
Didi
Telerik team
commented on 17 Jun 2021, 05:50 AM

In order to achieve this, you will need to create a custom renderer for android. We have a how-to article that explains the exact approach and custom renderer implementation: https://docs.telerik.com/devtools/xamarin/knowledge-base/piechart-remove-white-border-from-labels 
Tags
Chart
Asked by
guo
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Share this question
or