New to Telerik UI for WinForms? Download free 30-day trial

Data Binding RadChart to an Array

To bind a RadChart to an Array object, assign the RadChart DataSource property to the array, then call the RadChart DataBind() method. The example below demonstrates data binding to an array of integers.

WinForms RadChart Binding to an Array

int[] intArray = new int[4] { 10, 12, 13, 5 };
radChart1.DataSource = intArray;

RadChart1.DataSource = New Double() {1.4, 1.9, 3.6, 3.6, 4.1}
RadChart1.ChartTitle.TextBlock.Text = "Units Purchased (Thousands)"

In this article