标签:
前段时间同一个页面fusioncharts图表切换一直没出问题,如下图:
最近运行系统突然报错:
Uncaught ParameterException: #06091847 chartobject-1 Warning >> A FusionChart oject with the specified id "theTaskRateChart" already exists. Renaming it to chartobject-1
if(FusionCharts("theChart")){
//dispose掉
FusionCharts("theChart").dispose();
//然后再重新new一个FusionCharts
taskRateChart = new FusionCharts(path + "/js/common/fusionchart/swf/StackedColumn3DLineDY.swf", "theChartID", "100%", "100%", "0", "0");
}taskRateChart.addEventListener("Rendered",function(evt,args){
alert(evt.sender.id+"-OK");
});fusioncharts图表切换、多次重新加载——dispose
标签:
原文地址:http://blog.csdn.net/hgg923/article/details/42646605