if(下拉参数1.getSelectedObjects()[0] != null){
var name=下拉参数1.getSelectedObjects()[0]
//图表1.binding.clearYCols();
//取到name列的数据
var bcol = new BCol(name,INTEGER,false);
//将数据为空然后赋值给qcol
var qcol = new ChartMeasureCol(SUM,bcol,null);
var a=new SingleMarkCol(qcol,PIE)
//qcol添加到ScoreTable1表X轴上
//图表1.binding.addYCol(0,qcol);
图表1.binding.setYCol(0,a)
var aa=new BCol("NAME",STRING,true)
var bb=new ChartDimCol(aa)
图表1.binding.markCol["Sum_"+name].colorField=bb
debug(name)
}
|