New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Data Binding RadChart to an XML file
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 RadChart to XML data you can:
Products.XML is used for both examples.The XML file is located in the same directory as the default page used to display it.
XML
<?xml version="1.0" encoding="utf-8" ?>
<Products>
<Product Name="Parka L" QuantityInStock="123"></Product>
<Product Name="Parka M" QuantityInStock="56"></Product>
<Product Name="Parka S" QuantityInStock="92"></Product>
<Product Name="Mittens" QuantityInStock="12"></Product>
</Products>