使用谷歌气泡图时出现气泡图表偏离轴的问题。
任何想法如何添加间距,或更改轴刻度以容纳额外的空间?
你可以看到我在这里谈论的一个例子: http://jsfiddle.net/k77bp25g/2/
function drawSeriesChart() {
var data = google.visualization.arrayToDataTable([
['ID', 'Life Expectancy', 'Fertility Rate', 'Region', 'Population'],
['CAN', 0, 1.67, 'North America', 933739900],
['DEU', 79.84, 1.36, 'Europe', 933739900]
]);
var options = {
title: 'Correlation between life expectancy, fertility rate and population of some world countries (2010)',
hAxis: {title: 'Life Expectancy'},
vAxis: {title: 'Fertility Rate'},
bubble: {textStyle: {fontSize: 11}}
};
var chart = new google.visualization.BubbleChart(document.getElementById('series_chart_div'));
chart.draw(data, options);
}