I meet a problem When I run the following js with FusionCharts in IE and Chrome,
I find IE (Version: 9.0.8112.16421) can fetch the data and show the chart but Chrome (Version 23.0.1271.97 m) cannot. (See figure Capture_IE.png and Capture_Chrome.png attached)
Same codes but different result in IE and Chrome.
var O2UptimeChart = new FusionCharts("../Charts/MSLine.swf", "LN2D0003ID", chartWidth, chartHeight, "1", "1");
O2UptimeChart.setJSONUrl("http://127.0.0.1:8080/Apollo/Adapter?chartID=LN2D0003");
O2UptimeChart.render("LN2D0003");
BTW. I try the local file and data string like the following codes. Both of them run well in Chrome.
O2UptimeChart.setJSONUrl("test.json");
or
O2UptimeChart.setXMLData("<chart><categories><category label=\"2012-12-03\" /><category label=\"2012-12-04\" /></categories><dataset seriesname=\"Oxygen\"><set value=\"100.00\" /><set value=\"100.00\" /></dataset></chart>");
It seems that FusionCharts cannot fetch data by URL in Chrome.
Could anybody tell me the reason?
Is there something wrong with the codes? or just configuration issue?
Many thanks.