You are viewing documentation for an older version. For current documentation - click here.

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 and JavaScript files (FusionCharts.js, FusionCharts.HC.js, FusionCharts.HC.Widgets.js and jquery.min.js) in the required folder?
  • Have you provided the name and path of the chart properly in your code?
If you get an "Error in Loading Data." message, check the following:
  • Whether you've provided proper path to the XML/JSON data in your code.
  • Whether your XML/JSON file is named properly and not having a .txt extension (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 (like mac, linux etc.), check for the names of your XML/JSON and chart file.
  • Whether your chart files (SWF and JavaScript) and XML/JSON data are on the same sub-domain. Cross domain data loading is not allowed.
If you get an "Invalid Data." message, it means that the XML/JSON data is malformed. Check it again for common errors like:
  • Presence of duplicate attributes in the XML/JSON.
  • 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 get a screen showing "The chart will appear within this DIV..." or "Chart." or "FusionWidgets XT will load here", check if:
  • You've copied FusionCharts.js, jquery.min.js, FusionCharts.HC.js and FusionCharts.HC.Widgets.js in the right folder.
  • You've included and provided the correct path of FusionCharts.js in your HTML code.
  • There are any JavaScript syntax or runtime errors that might have halted the execution of FusionCharts APIs.
  • Unique names are used for the chart's JavaScript variable, chart's ID and the HMTL DIV's ID?
If the chart renders initially, but doesn't update in real time, do the following:
  • Check if you've specified a correct and valid path for dataStreamURL in XML/JSON data
  • Check if you've specified a valid value for refreshInterval in your XML/JSON data
  • 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 carriage returns (new-line characters) 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 the charts must be hosted on the same sub-domain in which the charts are hosted - otherwise, owing to security restrictions, the charts won't be able to receive updated data. Due to security restrictions, charts are allowed to retrieve data only from the same sub-domain in which the charts are residing. Data can only be loaded from a domain that is an exact match to the location of the charts, including sub-domains. For this reason, a chart residing at will not be able to access data from

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

  • If you are using Flash charts, switch on the debug mode of chart. It will provide you with a lot of valuable information when debugging.