When you use fusioncharts to create a chartErrorThere are many reasons. This article summarizes some common problems andSolutionFor your reference, I hope to help you.
If you cannot see any charts:
If the progress bar in the browser is always loaded or "movie not loaded" is displayed in the right-click menu, check the following content:
1. Have SWF charts and JavaScript files (fusioncharts. JS, fusioncharts. hc. JS, fusioncharts. hc. charts. JS, and jquery. Min. JS) been copied to the required folder?
2. Is the correct name and PATH provided for the chart in the code?
If you get the "error in loading data." prompt, check the following:
1. Whether the correct XML/JSON data path is provided in the Code
2. paste the Data URL into the browser to check whether a valid XML/JSON file is returned in the browser. If there is no script or timeout error, a valid XML/JSON is returned. In addition, make sure that XML/JSON is not mixed with HTML content. The data source provider page returns a neat XML/JSON-or even no HTML
3. The name of the XML/jsonfile contains the. txt extension.
4. If you are using a file system name that is case sensitive, check your xml/JSON name and chart file.
5. Check whether your chart files (SwF and JavaScript) and XML/JSON data are in the same domain name or the same subdomain name. Because cross-domain data cannot be loaded.
If you get the "invalid data." prompt, this means that the XML/JSON data format is incorrect. Common Errors are as follows:
1. Duplicate attributes exist in XML/JSON.
2. the tags are inconsistent. The end label of <chart> Should Be </chart>, not </chart> or </chart>.
3. The quotation marks (front/back) are missing in the attribute. For example, <chart numbersuffix = % 'should be written as <chart numbersuffix =' %'
4. The end label is missing for the element.
5. If you use double quotation marks as part of the data, they are encoded as & quot; for example: <set label = 'John says & quot; Hi & quot; to all. '/>
6. If you use single quotes as part of the data, they are encoded as & apos; for example: <set label = 'John & apos; house'/>
7. When using HTML embedding and data string, if you use special characters in the data, make sure they are correctly encoded.
8. When using the HTML embedding and data string methods, check whether there is a conflict between the XML Attribute character and the HTML parameter character. For example, if the HTML parameter uses "as a container, then you need to make sure that all your xml attributes use 'as the container.
For example:
<Param name = "flashvars" value = "<chart showlabels = '1' showvalues = '1'>... </chart>"/>
If you see prompts such as "the chart will appear within this Div..." or "chart." or "fusioncharts XT will load here", check the following items:
1. You have copied the fusioncharts. JS, jquery. Min. JS, fusioncharts. hc. JS, and fusioncharts. hc. charts. js files to the correct folder.
2. the HTML code contains and provides the correct fusioncharts. js path.
3. Any JavaScript syntax or runtime error may stop executing the fusioncharts API.
4. Are the Javascript variables, chart IDs, and HTML Div IDs of charts unique?
"No data to display" is displayed in the chart"
If your chart prompts "no data to display", it may be caused by the following situations:
1. XML data does not contain any data required for drawing the fusioncharts XT chart. At this time, your xml only contains <chart> or <dataset>, but there is no data between tags.
2. You may use a single-series chart, but provide multiple series formats, and vice versa. "No data to display" is displayed in the chart ".
3. In some double y combination charts, you must provide at least two axes for a dataset. Otherwise, the "no data to display" prompt will appear.
Fusioncharts usage Problems and Solutions (I)-fusioncharts FAQs