function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 8], ['European Journal of Taxonomy', 22], ['Raffles Bulletin Of Zoology', 1], ['Raffles Bulletin of Zoology', 2], ['The Entomolog', 8], ['ZooKeys', 32], ['Zoosystematics and Evolution', 4], ['Zootaxa', 22] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=99)', 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);