function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Entomologia', 1], ['Insects of Guam II', 1], ['Proceedings of the Academy of Natural Sciences of Philadelphia', 2], ['Proceedings of the Linnean Society of New South Wales', 7], ['Proft et Storch', 1], ['Revue suisse de Zoologie', 10], ['Zootaxa', 17] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=39)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 7, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);