使用一个按钮组件,在按钮组件的提交时运行写脚本,参考:图表1.binding.source = "咖啡22.sqry";
var bcol1 = new BCol("市场分布", STRING, true);
var bcol2 = new BCol("销量", INTEGER, false);
var meaCol = new MeasureCol(SUM, bcol2, null);
var dimCol = new DimCol(bcol1);
var arr = [dimCol, meaCol;
图表1.binding.setCols(arr);