今天,碰到FusionCharts.js中没有updateChartXML,于是增加了
/** Function to update chart's data at client side (FOR FusionCharts vFREE and 2.x*/infosoftglobal.FusionChartsUtil.updateChartXML = function(chartId, strXML){ //Get reference to chart object var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(chartId); //Set dataURL to null chartObj.SetVariable("_root.dataURL",""); //Set the flag chartObj.SetVariable("_root.isNewData","1"); //Set the actual data chartObj.SetVariable("_root.newData",strXML); //Go to the required frame chartObj.TGotoLabel("/", " ScriptHandler"); }
var updateChartXML = infosoftglobal.FusionChartsUtil.updateChartXML;