2012-07-05 37 views
0

首先抱歉我的英語,但我是意大利人。谷歌Bubblechart維度bug

現在...我正在處理運動圖和geochart沒有問題,但泡泡圖似乎有他的方式來做事情。

我在我的頁面上使用了幾個圖表,其中一些隱藏(顯示:無)其他沒有,但是當我在代碼900x600上編寫時,我隱藏了泡泡圖的尺寸變化爲400x200。

這是我與其他圖形完美使用代碼:

<div style="width: 100%; clear: left; display: none" id="religioni-frame"> 
    <div style="width: 50%; float: left; text-align: center"> 
     <div id="religione-bubble" style="width: 650px; height: 360px;margin: 0 auto"></div> 
    </div> 
    <div style="width: 50%; float: left; text-align: center;"> 
     <div id="religioni" style="width: 650px; height: 360px; margin: 0 auto"></div> 
    </div> 
</div> 

但是當我使用它BubbleChart中的一切土崩瓦解......我得到一個400x200郵票...

<div style="height: 900px;display: none" id="bubble-frame"> 
     <div id="chart_div" style="width: 900px; height: 400px;"></div> 
</div> 

如果我使用它沒有顯示:沒有它需要正確的尺寸。

<div style="height: 900px;display: inline" id="bubble-frame"> 
     <div id="chart_div" style="width: 900px; height: 400px;"></div> 
</div> 

這是一個測試頁面https://dl.dropbox.com/u/29200489/IPC/untitled/test.html 解決方案?

回答

1

對不起,我的英語,我是意大利人太..

它的更好,你始終指定寬度和高度

變化的這樣的代碼

var options = {width: 500, height: 900, 
colorAxis: {colors: ['yellow', 'red']} 
}; 

「選項」行等瞧

再見

liuchan