function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['American Museum Novitates', 1], ['Asiatic Researches', 11], ['Ballière', 1], ['Biodiversity Data Journal', 19], ['Journal and Proceedings of the Asiatic Society of Bengal', 1], ['Journal of Hymenoptera Research', 18], ['Linzer biologische Beiträge', 4], ['Madras Journal of Literature and Science', 4], ['Proceedings of the Zoological Society of London, B', 1], ['Transactions of the Entomological Society of London', 2], ['Zootaxa', 13] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=75)', 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);