本帖最后由 yhdata_SbmwkwIz 于 2023-11-13 15:33 编辑
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);
}
这段JS怎么加上图表按基地字段分组呢
还有按基地分不同颜色
|