Data Binding RadChart to a Generic List
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.
Because RadChart can be bound to objects that implement the IList interface, and generic lists implement IList, it follows that you can bind RadChart to generic lists.These lists can be of simple types, e.g. int and double types, or the lists can be composed of complex objects containing multiple properties.
-
See Data Binding RadChart to a Generic List of Simple Types for a minimal example binding to a list of type double.
-
See Data Binding RadChart to a Generic List of Objects for a more complex example where multiple properties are used for data and labeling.