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

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

2 Answers 36 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Watit
Top achievements
Rank 2
Watit asked on 10 Jan 2012, 08:57 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rahul
Top achievements
Rank 2
answered on 10 Jan 2012, 02:37 PM
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
0
Watit
Top achievements
Rank 2
answered on 11 Jan 2012, 03:07 AM
Dear ,Rahul

Thank you for your kindness ^^

Tags
Chart
Asked by
Watit
Top achievements
Rank 2
Answers by
Rahul
Top achievements
Rank 2
Watit
Top achievements
Rank 2
Share this question
or