function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['American Journal of Science', 4], ['Bulletin of the American Museum of Natural History', 15], ['Fourth Symposium on Mesozoic Terrestrial Ecosystems', 1], ['Geological Survey of Canada Contributions to Canadian Palaeontology', 1], ['Journal of Vertebrate Paleontology', 2], ['Rocky Mountain Geology', 1], ['Special papers in palaeontology', 1], ['The American Journal of Science, Series 3', 2], ['Transactions of the American Philosophical Society', 2] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=29)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 9, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);