amCharts Documentation
Search:     Advanced search
Browse by category:

Most frequent errors made during amCharts install

Views: 1008
You need to upgrade your flash player
If you pointed your browser to the page which should display the chart, and instead of it you see this message, don't hurry to upgrade your flash player, as most likely it is up to date. This message is also displayed when swfobject.js file is not found. This means, that you should check whether path to swfobject.js file in your html file is correct:

<script type="text/javascript" src="amline/swfobject.js"></script>

Blank space
If all you see is blank space in the place where your chart should be, then first thing you should check is whether path to your swf file is correct. Check this line in html file:

var so = new SWFObject("amline/amline.swf", "amline", "520", "400", "8", "#FFFFFF");

Error loading file
If you see this message: "Error loading file: some_file_name", then both swfobject.js and swf files where loaded sucsessfuly. This message is displayed in two cases:

1) file is not found. You should check wheter paths to  your data or settings file is correct. Check these lines:

        so.addVariable("settings_file", escape("amline/amline_settings.xml"));
        so.addVariable("data_file", escape("amline/amline_data.xml"));

2) file is empty. If you wish "no data" error message to be displayed, then there should be at least one blank space in data file.

Error in data file
Most frequetly this message is displayed when your data file is in CSV format, but you didn't indicated in settings file that your data type is CSV. Check this line in settings file:

<data_type>csv</data_type>

If your data file is XML, then you can leave this setting empty or place "xml" instead of "csv".
Others in this Category
document Using colons and dots in data or settings urls
document Labels in data file
document Exporting charts as PDF and some image formats using third party software
document How to display language-specific characters in amCharts
document Rotated axis values and language-specific characters