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 replaced by RadHtmlChart, Telerik's client-side charting component. If you are considering RadChart for new development, examine the RadHtmlChart documentation and online demos first to see if it will fit your development needs. If you are already using RadChart in your projects, you can migrate to RadHtmlChart by following these articles: Migrating Series, Migrating Axes, Migrating Date Axes, Migrating Databinding, Features parity. Support for RadChart is discontinued as of Q3 2014, but the control will remain in the assembly so it can still be used. We encourage you to use RadHtmlChart for new development.

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