谷歌气泡图维度错误

Google Bubblechart dimension bug

本文关键字:错误 气泡 谷歌      更新时间:2023-09-26

首先对不起我的英语,但我是意大利人。

现在。。。我正在使用运动图和地理图没有问题,但泡泡图似乎有他做事的方式。

我在我的页面上使用了几个图表,有些是隐藏的(显示:无)其他不是,但是当我隐藏气泡图时,当我在代码 400x200 上写 900x600 时,他的尺寸变化为 900x600。

这是我完美地

与其他图形一起使用的代码:

<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>

但是当我在气泡图上使用它时,一切都会分崩离析......我得到了一个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解决 方案?

对不起我的英语,我也是意大利人。

最好

始终指定宽度和高度

像这样更改代码的"选项"行

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

瞧,瞧

再见

柳婵