Fusioncharts often appears no data to display

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.