function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acarologia', 2], ['American Museum Novitates', 7], ['Bulletin of the American Museum of Natural History', 2], ['Handbook of the Mammals of the World – Volume 6 Lagomorphs and Rodents I', 67], ['Mammal Species of the World (1 st Edition)', 71], ['Mammal Species of the World (2 nd Edition)', 69], ['Mammal Species of the World: a Taxonomic and Geographic Reference (3 rd Edition), Volume 2', 155], ['Zoological Journal of the Linnean Society', 6], ['Zootaxa', 10] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=389)', 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);