FusionCharts Free Examples

Basic example using dataXML method (with XML data hard-coded in JSP 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 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 String 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 %>

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