本帖最后由 歪打正着 于 2021-12-1 14:27 编辑
param["modelcode"] = param["车系"]
param["startDate"] = param["起始日期"]
param["endDate"] = param["结束日期"]
//度量动态绑定
var arr2 = 列表参数2.getSelectedObjects();
function test2(chart2){
chart2.binding.clearYCols();
for(var j= 0; j < arr2.length; j++){
var b='Sum_'+arr2[j]
var bcol2 = new BCol(arr2[j],DOUBLE,false);
var measureCol2 = new ChartMeasureCol(SUM,bcol2);
chart2.binding.addYCol(j,measureCol2);
chart2.binding.axis.shareGroup = 'aaa'
if (j > 2) {
//下面的颜色你自己设定,下记中0x456789的颜色,你自己按照你的需求修改
var color = new Color(0x456789);
var d = new DefColorGuide(color);
chart2.binding.markCol[arr2[j]].colorGuide= d;
}
}
}
test2(图表1);
|