Try this: http://jsfiddle.net/YjpEm/
On Wednesday, April 18, 2012 10:03:53 AM UTC-4, Humble Beginnings wrote: > > 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?"}); > } > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Tz1KSz2C5yUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
