Adding Multiple Series to a Radchart

Thread is closed for posting
1 posts, 0 answers
  1. Ram
    Ram avatar
    8 posts
    Member since:
    Jul 2013

    Posted 22 Aug 2013 Link to this post

    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

Back to Top