Custom Labels on chart

Thread is closed for posting
5 posts, 0 answers
  1. Jan
    Jan avatar
    8 posts
    Member since:
    Mar 2012

    Posted 11 Apr 2012 Link to this post

    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
  2. Jan
    Jan avatar
    8 posts
    Member since:
    Mar 2012

    Posted 15 Apr 2012 Link to this post

    Please any help???
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 16 Apr 2012 Link to this post

    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.
  5. Jan
    Jan avatar
    8 posts
    Member since:
    Mar 2012

    Posted 16 Apr 2012 Link to this post

    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


  6. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 18 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017