function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Entomologica Musei Nationalis Pragae', 21], ['Belgian journal of entomology', 1], ['Biodiversity Data Journal', 5], ['Journal of Natural History', 5], ['The Scientific Transactions of the Royal Dublin Society, Series 2', 1], ['ZooKeys', 53], ['Zootaxa', 56] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=142)', 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);