Do you have the need to display data from XML in a chart in ASP.NET web application? Are you looking for the sample examples on how a chart can be bound to an XML file or an XML data source? If you have one yes for either of above two questions, you may have strong interest in following tutorial which puts its focus on how to bind chart to XML programmatically in ASP.NET web platform. Before following guide, you can view the free online demo of chart data binding with xml. Binding from XML Data Source
In this part, we offer a step to step tutorial with guide pictures to help you bind chart to XML data source at design time in ASP.NET web application. Before starting the chart data binding application, please make sure that your ASP.NET web application has installed NET Framework 3.5 or above versions and that you have installed all the necessary dlls from our ASP.NET AJAX SDK into your ASP.NET web application.
Here we attach an image to demonstrate the result of above ASP.NET application of binding from XML data source. Binding from an XML File
The KaxChart control can not only allow users to bind chart to XML data source but also own the ability to bind chart to XML file directly at runtime. And you can finish the chart data binding with XML file within simple steps.
To help you have a better understanding of the result of chart data bind with XML file, here we specifically show some content from target XML file.
ChartData2.XML <?xml version="1.0" encoding="utf-8" ?>
After adding following C# code, you can successfully bind chart to target XML file. In the process of chart data binding with XML file, two important lines of code are the assignment of the data source and the calling of DataBind() method. C# example code:
Similarly, we here attach a screen shot image to help you have a better understanding of the result of above ASP.NET chart data binding with XML file application. In the chart graphs, there are three grouped bars correspond to the data series in the xml file. Our asp.net chart control can add and show multiple data group source, and each bar in each group stands for a data item in the data series. Besides the bar chart shown in this tutorial for example, Kettic web chart component provide some other commonly used chart types: line chart, point chart, gantt chart, bubble chart and pie chart. Other Recommended Data Binding Applications |
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control OverviewGetting StartedChart Element DiagramSeriesAxesLegendCaptionTickData GridChart Type Bar ChartPoint ChartLine ChartPie ChartArea ChartGantt ChartBubble ChartBezier ChartSpline ChartSpline Area ChartCandle Chart Chart With StackedFull Stacked ChartFeatures Automatic LayoutAutomatic Text-wrappingScrollingEmpty ValuesScale BreakMultiline LabelsWise LabelsMarking AreasMultiple TypesInteractiveDrill DownShadowEdtingData Binding Array DataList DataDatabase DataXML Data Chart Style Chart SkinASP.NET AJAX Grid UI Control |