New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Data Binding RadChart to a Generic List of Simple Types

RadChart has been deprecated since Q3 2014 and is no longer recommended for use, as it does not support modern browsers. We strongly recommend using RadHtmlChart, Telerik's modern client-side charting component. To transition from RadChart to RadHtmlChart, refer to the following migration articles:

Explore the RadHtmlChart documentation and online demos to determine how it fits your development needs.

The example below is the result of binding a generic List<> of double to the RadChartDataSource property and calling the DataBind() method.

Binding to IList

C#
List<double> chartData = new List<double>();
chartData.Add(34);
chartData.Add(45);
chartData.Add(56);
chartData.Add(67);
chartData.Add(78);
RadChart1.DataSource = chartData;
RadChart1.DataBind();			

See Also

In this article
See Also
Not finding the help you need?
Contact Support