New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Data Binding RadChart to an Array
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.
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.
C#
protected void Page_Load(object sender, EventArgs e)
{
int[] intArray = new int[4] { 10, 12, 13, 5 };
RadChart1.DataSource = intArray;
RadChart1.DataBind();
}