Chartwrapper: Two Pie Charts?

162 views
Skip to first unread message

Humble Beginnings

unread,
Apr 18, 2012, 10:03:53 AM4/18/12
to Google Visualization API
I am trying to generate two pie charts (side by side) from the
chartwrapper code. Using the Playground example could someone show me
how to do so? http://code.google.com/apis/ajax/playground/#pie_chart

current:

function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
]);

// Create and draw the visualization.
new
google.visualization.PieChart(document.getElementById('visualization')).
draw(data, {title:"So, how was your day?"});
}

asgallant

unread,
Apr 18, 2012, 10:44:55 AM4/18/12
to google-visua...@googlegroups.com

Humble Beginnings

unread,
Apr 18, 2012, 11:47:43 AM4/18/12
to Google Visualization API

Thanks, got it to work!

asgallant

unread,
Oct 15, 2012, 5:32:05 PM10/15/12
to google-visua...@googlegroups.com
Use CSS to position the container divs.

On Monday, October 15, 2012 3:09:34 PM UTC-4, Mordechai Danielov wrote:
is there a way to have two charts side-by-side horizontally?
Reply all
Reply to author
Forward
0 new messages