Need help-RadChart-Do not know how to assign Datatable(X and Y Values) to ChartSeries Programmatically

Thread is closed for posting
3 posts, 0 answers
  1. Moorthy
    Moorthy avatar
    5 posts
    Member since:
    Jan 2013

    Posted 31 Jan 2013 Link to this post


    Hello,
    I am new to Telerik and first time creating report using RadChart with Multiple series.

    I need to assign the each series with X and Y values directly from Data table.

    Please help.

    Sample Code behind:

    ChartSeries SS = new ChartSeries();

                SS.Type = ChartSeriesType.Line;
                SS.DataYColumn = "Value";
                SS.DataXColumn = "Date";
                //Need to assign Datatable which is having 2 columns Date (Like) 1-Jan, 2-Jan (no year) )) and Sales value(like 30, 50)
                RadChart1.Series.Add(SS);
    Likewise i need to add 4 to 5 series.

    Thanks,
    Moorthy
  2. Moorthy
    Moorthy avatar
    5 posts
    Member since:
    Jan 2013

    Posted 31 Jan 2013 Link to this post


    Can anyone help me with this. I am struck here.

    Thanks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 05 Feb 2013 Link to this post

    Hi Moorthy,

    You can find a similar example here.

    Best regards,
    Ves
    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