RadControls for ASP.NET AJAX 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.
CopyC#
protected void Page_Load(object sender, EventArgs e)
{
int[] intArray = new int[4] { 10, 12, 13, 5 };
RadChart1.DataSource = intArray;
RadChart1.DataBind();
}
CopyVB.NET
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim intArray As Integer() = New Integer(4) {10, 12, 13, 5}
RadChart1.DataSource = intArray
RadChart1.DataBind()
End Sub
See Also