This is a migrated thread and some comments may be shown as answers.

Custom Labels on chart

4 Answers 96 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 11 Apr 2012, 05:04 PM
Hi, 
I try set  format label on percent type, but i dont hnow how.
DataSourse is in format
KEY VALUE
Jan Plecháč 2. pokus  0.65
Jan Plecháč 1. pokus       0.48 

I need on image write 65% and don´t 0,65%

Thank you for respond and sorry for my english

4 Answers, 1 is accepted

Sort by
0
Jan
Top achievements
Rank 1
answered on 15 Apr 2012, 12:07 PM
Please any help???
0
Peshito
Telerik team
answered on 16 Apr 2012, 11:49 AM
Hello,

You can customize your labels forma by using DefaultLabelValue property like this for example:
series1.DefaultLabelValue = #%;
"#%" is used for a percentage of the total sum (of all items).

Alternatively you could use:
series1.DefaultLabelValue = "#Y" + "%";
which will add "%" to your series items labels.

Further information can also be found here:
http://www.telerik.com/help/aspnet-ajax/radchart-default-label-value.html

Hope this helps.

Regards,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jan
Top achievements
Rank 1
answered on 16 Apr 2012, 12:55 PM
if i try 
series1.DefaultLabelValue = #%; 
then write to chart 13% but right is 33%

And series1.DefaultLabelValue = "#Y" + "%"; 
then write only 0.33

Please help how i easy display chart with percent :(;
i get data from DB and give chart in dictionary


please help


0
Peshito
Telerik team
answered on 18 Apr 2012, 09:04 AM
Hello Jan,

Please, take a look at the attached sample demonstrating the use of DefaultLabelValue property and adding "%" at the end of the series items labels. If this does not help in solving your issue, could you please edit the sample so the problem be reproducible.

Regards,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Jan
Top achievements
Rank 1
Answers by
Jan
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or