function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Adansonia', 3], ['American Museum Novitates', 6], ['Annals of the Transvaal Museum', 3], ['Bulletin of the American Museum of Natural History', 1], ['Handbook of the Mammals of the World – Volume 8 Insectivores, Sloths and Colugos', 51], ['Mammal Species of the World: a Taxonomic and Geographic Reference (3 rd Edition), Volume 1', 99], ['Mammalia', 1], ['Palaeontologia Electronica', 2], ['Plassan', 2], ['Proceedings of the Zoological Society of London', 1], ['Zoosystema', 2], ['Zootaxa', 5] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=176)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 12, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);