我正在與谷歌可視化一個錯誤修正爲一個組合(列/行)圖,此時軸中的一個去奇怪,開始重複數(即: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