//变化时运行的加上以下脚本,列名和组件名按照实际改改试试能不能满足场景
var data = 下拉列表参数1.getSelectedObjects()
if(data.length>1){
图表1.binding.clearYCols();
var bcol2 = new BCol("利润", DOUBLE, false);
var qcol2 = new ChartMeasureCol(SUM, bcol2, null);
smcol2 = new SingleMarkCol(qcol2, LINE);
图表1.binding.addYCol(1, smcol2);
}else{
图表1.binding.clearYCols();
var bcol1 = new BCol("销量", DOUBLE, false);
var bcol2 = new BCol("利润", DOUBLE, false);
var qcol1 = new ChartMeasureCol(SUM, bcol1, null);
var qcol2 = new ChartMeasureCol(SUM, bcol2, null);
smcol1 = new SingleMarkCol(qcol1, POINT);
smcol2 = new SingleMarkCol(qcol2, LINE);
图表1.binding.addYCol(0, smcol1);
图表1.binding.addYCol(1, smcol2);
}