0

我正在使用谷歌图表 api。它非常适合我的需求。我现在正在尝试在同一页面中合并多个饼图。我已将图表移至页面底部。如何在同一个画布中添加四个饼图,或者我应该在同一页面上创建多个画布。

var chart = new google.visualization.PieChart(document.getElementById('chart_div'));

我很感激任何帮助。

4

1 回答 1

1

Do not understand what you means by canvas. But if you've 4 Google charts, each chart can be displayed in its own DIV. So you'll need 4 'chart_div'. For example, this is how the Web Reporting of icCube is working.

于 2012-06-12T00:13:30.480 回答