<%@ Language=VBScript %> FusionCharts Free - Simple Column 3D Chart using dataXML method <% 'You need to include the following JS file, if you intend to embed the chart using JavaScript. 'Embedding using JavaScripts avoids the "Click to Activate..." issue in Internet Explorer 'When you make your own charts, make sure that the path to this JS file is correct. Else, you would get JavaScript errors. %> <% 'We've included ../Includes/FusionCharts.asp, which contains functions 'to help us easily embed the charts. %>

FusionCharts Free Examples

JavaScript embedding using dataXML method (with XML data hard-coded in ASP page itself)

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.

<% '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 Dim 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 = strXML & "" strXML = strXML & "" 'Create the chart - Column 3D Chart with data from strXML variable using dataXML method Call renderChart("../../FusionCharts/FCF_Column3D.swf", "", strXML, "myNext", 600, 300) %>

Unable to see the chart above?
« Back to list of examples