Basic example using dataXML method (with XML data hard-coded in ASP page itself)
<%
'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
strXML = ""
strXML = strXML & ""
strXML = strXML & ""
strXML = strXML & ""
strXML = strXML & ""
strXML = strXML & ""
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
Call renderChartHTML("../../FusionCharts/Column3D.swf", "", strXML, "myNext", 600, 300, false)
%>
If you view the source of this page, you'll see that the XML data is present in this same page (inside HTML code). We're not calling any external XML (or script) files to serve XML data. dataXML method is ideal when you've to plot small amounts of data.