2
chart.draw(data,{
colors:[self.model.get("color"), '#FF0000'],
height: 600,
title: self.model.get("title"),
chartArea: { width:'80%',height:'80%'},
legend: {position: 'bottom'},
animation:{
startup: true,
duration: 500,
easing: 'inAndOut',
},
vAxis:{
0:{
title:self.model.get("x_axis_label")
},
1:{
title:"Temperature"
}
},
hAxis:{
title:self.model.get("x_axis_label"),
slantedText: false,
slantedTextAngle: 0
},
series:
{
0: {
type:'bars',
targetAxisIndex:0
},
1: {
type:'line',
targetAxisIndex:1
}
}
});
我有两个垂直轴(温度和KWh)。除了垂直轴的标题外,每件作品都不会显示在图表上。我在系列的选项和targetAxisIndex中定义了vAxis。我搜索谷歌,找不到任何东西,除了vAxis应该有两个垂直轴的0:{}和1:{}。Google图表的comboChart中的辅助轴标题不起作用
这个问题的任何运气? – WhiteHat