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

Adding Multiple Series to a Radchart

0 Answers 65 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 22 Aug 2013, 02:34 PM
Hi All

I have a List<> which contains multiple items and  is built at dynamically when a user clicks Search.

I need to bind this list to a Radchart programmatically and need to add each item in this list to a series then add this to the
Radchart.

I have tried with the code below but i am getting an error - can anyone help?
foreach (ProductsAndPrices yl in YearlyAverage)
{
       string name = yl.Product + " " + yl.ProductStrength + " " + yl.Pack_Size;
       chart.Name = name;
       int av = int.Parse(yl.Average.ToString());
       chart.AddItem(int.Parse(yl.Average.ToString()), name);
}
 
testing.Series.Add(chart);

I need to get all the values from the list in the format yl[0].Average , yl[1].average etc etc and bind this to the radchart...

Many thanks
Ram

No answers yet. Maybe you can help?

Tags
Chart (Obsolete)
Asked by
Ram
Top achievements
Rank 1
Share this question
or