I don't think the configuration options accept percentages for width
(although they do for chartArea.width, so maybe they will). You can
calculate them yourself, though:
// set width to 65% of the div's width
var pieDiv = document.getElementById('chart_div2');
options = {width: pieDiv.style.width * 0.65};
var chart = new google.visualization.PieChart(pieDiv);
chart.draw(data, options);
--
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/-/pijnb9n9u1IJ.
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.