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

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

2 Answers 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Moorthy
Top achievements
Rank 1
Moorthy asked on 31 Jan 2013, 05:04 PM

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 Answers, 1 is accepted

Sort by
0
Moorthy
Top achievements
Rank 1
answered on 31 Jan 2013, 10:10 PM

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

Thanks.
0
Ves
Telerik team
answered on 05 Feb 2013, 10:37 AM
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.
Tags
Chart (Obsolete)
Asked by
Moorthy
Top achievements
Rank 1
Answers by
Moorthy
Top achievements
Rank 1
Ves
Telerik team
Share this question
or