我正在与谷歌可视化一个错误修正为一个组合(列/行)图,此时轴中的一个去奇怪,开始重复数(即:1,1,2,2而不是1,2,3,4)。请参考下面重复的数字垂直轴
图像以下是图表选项设置:
// Instantiate and draw our chart, passing in some options.
var frequency_by_day_options = {
vAxes: [
{format:'#,###', title:"Call Volume"},
{format: '#%', title:'Missed Call Rate',
viewWindow:{
max:1,
}}
],
legend: {position: 'none'},
chartArea: { height:'60%', width:'60%'},
width: 800,
height: 350,
backgroundColor: 'transparent',
bar: { groupWidth: '90%'},
isStacked: true,
seriesType: 'bars',
series: {0: {type:'bar', targetAxisIndex:0}, 1: {type:'line', targetAxisIndex:1},},
colors: ['blue', 'green'],
animation:{
duration: 1000,
easing: 'out',},
};
我不知道是怎么回事。即使我注释掉所有vAxis选项,我仍然会观察到这种行为。任何想法我做错了什么?这是我发疯:)
很好的答案,非常感谢! – 2013-03-28 05:21:17
没问题,很高兴我能帮到你。让我知道它是如何工作的! – jmac 2013-03-28 05:47:32