FusionCharts 3D环饼图报错

时间:2024-04-15 18:37:58

1、在设计FusionCharts 3D环饼图时,出现错误,图显示不出来,具体错误如下图:

FusionCharts 3D环饼图报错

2、经过检查,发现声明的变量和下面引用的变量不一致

var doughnut2D = new FusionCharts( "../scripts/Charts/Doughnut3D.swf", "doughnut2DId", "100%", "540", "0" );
doughnut3D.setXMLUrl("data/doughnut3D.xml");
doughnut3D.render("doughnut3DChart");

“doughnut2D”和“doughnut3D”不一致,导致图无法出来