As you must already be aware by now, FusionCharts accepts only XML data to plot the charts. You can either provide physical XML data files or dynamically relay XML data using server-side scripts to FusionCharts. Here, we explore the various methods using which you can provide XML data to FusionCharts.

There are 3 ways using which you can provide XML data to FusionCharts:

  1. dataURL method - In this method, you only provide the URL of XML Data Document to FusionCharts. The chart now sends a request for XML data to the specified URL, reads it, parses it and then renders the charts accordingly.
  2. dataXML method - Here, you send the XML data along with the HTML Content and chart SWF file to the browser. The SWF loads, reads this data (present in same HTML page) and then renders the chart.
  3. JavaScript method using updateChartXML - In this method, you provide the XML data to FusionCharts using JavaScript functions (present on the same page in which chart is present).
The commercial version of FusionCharts - FusionCharts v3 - offers another method, wherein, using JavaScript API you can just ask an existing chart to load data from a new URL. This is an AJAX like method to update chart data without refreshing the webpage using JavaScript functions present on the same page in which chart is present. Unfortunately, FusionCharts Free does not support this method.
 
Let's discuss each of these methods in the following pages.