function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Zoologica', 3], ['Biodiversity Data Journal', 30], ['Bulletin of the American Museum of Natural History', 2], ['European Journal of Taxonomy', 11], ['Geodiversitas', 2], ['Journal of Natural History', 29], ['Zootaxa', 69] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=146)', 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);