在下面的代码中,我已经输入了角度分量。我在系列对象中尝试过“targetAxisIndex:1”,但它对我不起作用。我会非常感谢帮助过我的人。
type = 'ComboChart';
data = [
['2001', 200, 300, 400, 500],
['2002', 700, 600, 539, 594],
['2003', 125, 819, 123, 578],
['2004', 197, 536, 613, 298]
];
columnNames = ['Year', 'one', 'two', 'three', 'four'];
options = {
isStacked:true,
hAxis: {
title: 'Year'
},
seriesType:'bars',
series: {
0: {
color:'blue',
targetAxisIndex: 0
},
1: {
color:'yellow',
targetAxisIndex: 0
},
2: {
color:'red',
targetAxisIndex: 1
},
3: {
color:'purple',
targetAxisIndex: 1
}
},
};
width = 800;
height = 600;