function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Austral Entomology', 1], ['Australian journal of entomology', 1], ['Biodiversity Data Journal', 2], ['Insect systematics & evolution', 2], ['Revue suisse de Zoologie', 6], ['Revue suisse de zoologie', 1], ['Subterranean Biology', 1], ['ZooKeys', 6], ['Zoosystema', 21], ['Zootaxa', 78] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=119)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 10, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);