This section helps you debug errors that might crop up with data-streaming charts. We've grouped the possible errors and suggested solutions for them.

 
If you do not see any chart at all

If you see an endless loading progress bar in your browser, or if the right click menu (right click at the place where the chart is supposed to be) shows "Movie not loaded", check the following:

  • Have you pasted the chart SWF files in the required folder?
  • In your HTML code, have you provided the SWF path properly?
  • Do you have Adobe Flash Player 8 (or above) installed for this browser?
  • Have you enabled your browser to show ActiveX controls? Normally, all browsers are Flash-enabled.

If you get a screen showing "The chart will appear within this DIV...", check if:

  • You've copied FusionCharts.js in the right folder.
  • You've included the proper path to this JS file in your HTML code.

If you get a "Error in Loading Data" message, check the following:

  • Whether you've provided proper path to the XML Data document in your HTML file?
  • Whether Data.xml is named as Data.xml and not Data.xml.txt, as many basic text editors append .txt after the file name?
  • If you're using an operating system that uses case sensitive naming for file system, check for the names of your XML and SWF file.
  • Whether your SWF file and XML Data document are on the same sub-domain? Flash Player doesn't allow cross domain data loading.

If you get an "Invalid XML Data" message

If you get an "Invalid XML Data" message, it means that the XML data document is malformed. Check it again for common errors like:

  • Difference in case of tags. <chart> should end with </chart> and not </Chart> or </CHART>
  • Missing opening/closing quotation marks for any attributes. e.g., <chart numberSuffix=%' should be <chart numberSuffix='%'.
  • Missing closing tag for any element.
  • If you're using special characters, then switch to dataURL method instead of dataXML method.
If the chart renders initially, but doesn't update in real time
  • Switch on the debug mode of chart. It will provide you with a lot of valuable information when debugging.
  • Check if path dataStreamURL provided in XML is correct.
  • Check if you've specified a valid value for refreshInterval in your XML document.
  • Check if dataStreamURL is returning proper data. To test this, just open your browser and run this page. It should return the data in text format.
  • Make sure the output data doesn't contain any carraige returns or HTML elements. In many scripting languages, these are automatically added. You'll need to remove them.
  • You also need to make sure that the page which provides the incremental update data to FusionCharts must be hosted on the same sub-domain in which the chart .swf is hosted - otherwise, FusionWidgets, owing to Flash Sandbox security model, won't be able to receive updated data. Due to Flash sandbox security restrictions, you are allowed to retrieve data only from the same sub-domain in which the flash movie is residing. Data can only be loaded from a domain that is an exact match to the location of the SWF, including subdomains. For this reason a SWF residing at server1.mydomain.com will not be able to access data from a SWF at mydomain.com.

    If you wish to load data from a different domain, you can set up a proxy page at the same sub domain which would actually request data from the distant domain and then relay it to FusionWidgets. You must be able to upload and run a server-side script on a server in the same domain as the Flash movie. In this method, the Flash movie accesses the script, which loads the information, retrieves it, and returns the information back to the Flash movie. This method is best if the server hosting the data is not under your control (for example, a public source or a web service).