New to Telerik UI for WinFormsStart a free 30-day trial

Data Binding RadChart to a Generic List of Simple Types

Updated over 1 year ago

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

WinForms RadChart Binding to a Generic List of Simple Types

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;
Not finding the help you need?
Contact Support