function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 2], ['Gr Basin Nat', 1], ['Journal of the Academy of Natural Sciences of Philadelphia', 2], ['Mitteilungen über Höhlen- und Karstforschung', 1], ['Proceedings of the Zoological Society of London', 1], ['Psyche', 1], ['Revue suisse de Zoologie', 1], ['Species Diversity', 2], ['Zootaxa', 36] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=47)', 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);