function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Australian Journal of Zoology, Supplementary Series', 1], ['Biodiversity Data Journal', 2], ['Copeia', 2], ['Pacific Science', 1], ['Philippine Journal of Science, Section D', 1], ['Raffles Bulletin of Zoology', 1], ['South African Journal of Science', 2], ['Zootaxa', 14] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=24)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);