0
如果您看下面的內容jsfiddle谷歌圖表:信息彈出窗口不能在浮動div上工作?
右側的圖表不顯示彈出窗口。 這是爲什麼?我該如何解決它?
google.load('visualization', '1.0', {
'packages': ['corechart']
});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'User');
data.addColumn('number', 'Messages Sent');
data.addRows([
['Amelia', 35],
['John', 1],
['Ted', 3],
['pat', 1]
]);
var data2 = new google.visualization.DataTable();
data2.addColumn('string', 'User');
data2.addColumn('number', 'Messages Sent');
data2.addRows([
['Amelia', 35],
['John', 1],
['Ted', 3],
['pat', 1]
]);
var options = {
'title': 'Ownership',
'width': 250,
'height': 250
};
var options2 = {
'title': 'Ownership',
'width': 250,
'height': 250
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
var chart2 = new google.visualization.PieChart(document.getElementById('chart_div_2'));
chart.draw(data, options);
chart2.draw(data2, options2);
}