using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using InfoSoftGlobal; public partial class BasicExample_BasicDataXML : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // Generate chart in Literal Control FCLiteral.Text = CreateCharts(); } public string CreateCharts() { //This page demonstrates the ease of generating charts using FusionCharts. //For this chart, we've used a string variable to contain our entire XML data. //Ideally, you would generate XML data documents at run-time, after interfacing with //forms or databases etc.Such examples are also present. //Here, we've kept this example very simple. //Create an XML data document in a string variable string strXML; strXML = ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; strXML += ""; //Create the chart - Column 3D Chart with data from strXML variable using dataXML method return FusionCharts.RenderChartHTML("../FusionCharts/FCF_Column3D.swf", "", strXML, "myNext", "600", "300", false); } }