Using the Fusioncharts Dashboard (angulargauge) in our system, use Ajax
| var fusioncharturl = "${pagecontext.request.contextpath}/sdca_map/fusionchart/charts/angulargauge.swf?" chartnodatatext= temporarily no data display "; function initFunsionChart02 () { var reviseauditchart = new Fusioncharts (Fusioncharturl, "Reviseauditchart1id", "100%", "100%", "1", "1"); Reviseauditchart.setdataxml ("); Reviseauditchart.setdataurl (Escape (Getreviseleakurl (revise_ing, ' revise ')); Reviseauditchart.render ("Reviseaudit"); function Loadautorevisedata (statusparam,tableparam) { $.ajax ({ URL: ' ${pagecontext.request.contextpath}/chartviewaction!getreviseleakdata.do?statusparam= ' +statusParam+ & Tableparam= "+tableparam, Type: ' Post ', DataType: "Text", Cache:false, Success:function (data) { var myChart = null; if (null==statusparam| | Null==tableparam) { } Mychart.setdataxml (data);
} }) ; } |
Can be displayed, but the use of the window of the world often appear "no data to display", from the Internet to find a lot of ways to solve the problem,
Finally, using the Fusioncharts debugging function, the
var revisingchart = new Fusioncharts (Fusioncharturl, "Revisingchart1id", "100%", "100%", "1", "1");
The information for the prompts is as follows:
Info:chart registered with external script. DOM Id of chart is Revisingchart1id
Warning:could not find DataXML or Dataurl parameter. Setting empty data for the chart.
Error:no data to display. There isn ' t any node/element in the XML document. Please check if your dataurl are properly URL encoded or, if XML has been correctly embedded in case of DataXML.
No data to Display:no dial is found in the XML Data document provided. If your system generates data based on parameters passed to it using Dataurl, "Make sure" Dataurl is URL encoded .
But alert pop-up data is a value, I have to modify Ajax as a Dataurl method call, (just try, accidentally found no longer "no data to display").
Specifically do not know what causes, the Internet has said that this is a bug.
Record it for later use.