function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['American Journal of Science', 4], ['Contributions to Geology, University of Wyoming', 1], ['Fourth Symposium on Mesozoic Terrestrial Ecosystems', 1], ['GĂ©obios', 1], ['Journal of Paleontology', 1], ['Mesozoic Vertebrate Life', 1], ['Predatory Dinosaurs of the World', 4], ['Proceedings of the Academy of Natural Sciences of Philadelphia', 2], ['The American Journal of Science, series 2', 2], ['Transactions of the American Philosophical Society', 2], ['Tyrannosaurus rex, the tyrant king', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=20)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 11, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);