How to Setting name and value set to itemlabel of Doughnut Chart?

3 posts, 1 answers
  1. Watit
    Watit avatar
    37 posts
    Member since:
    Oct 2011

    Posted 10 Jan 2012 Link to this post

    i need to Setting name and value(Price) set to ItemLabel of Doughnut Chart

    sampleData.Add(new DashboardChart("AGRO", 1, 12.5));
    sampleData.Add(new DashboardChart("CONSUMP", 1, 12.5));
    sampleData.Add(new DashboardChart("FINCIAL", 2, 12.5));
    sampleData.Add(new DashboardChart("INDUS", 2, 12.5));
    sampleData.Add(new DashboardChart("PROPCON", 3, 12.5));
    sampleData.Add(new DashboardChart("RESOURC", 3, 12.5));
    sampleData.Add(new DashboardChart("SERVICE", 4, 12.5));
    sampleData.Add(new DashboardChart("TECH", 4, 12.5));


    public class DashboardChart
           {
               public string Name { get; set; }
               public int ID { get; set; }
     
               public double PercentChange { get; set; }
     
               public DashboardChart(string name, int id, double price)
               {
                   Name = name;
                   ID = id;
                   PercentChange = price;
               }
           }


    example at  my screenshot

    this my code
    Copy_of_317544_DoghnutChart.zip
  2. Answer
    Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 10 Jan 2012 Link to this post

    Hi Watit,

    You can modify your series labels in many way.
    I've modified your code as per your requirement.

    You can download your modified code from below link
    http://www.mediafire.com/?p27q2vqfqt0kr4p

    Please visit the following link to customize your labels more.
    http://www.telerik.com/help/silverlight/radchart-features-format-expressions.html

    Hope it will help you.

    Regards
    Rahul
  3. DevCraft banner
  4. Watit
    Watit avatar
    37 posts
    Member since:
    Oct 2011

    Posted 10 Jan 2012 Link to this post

    Dear ,Rahul

    Thank you for your kindness ^^

Back to Top