function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Indian Journal of Helminthology', 1], ['Journal of Natural History', 26], ['Journal of helminthology', 2], ['PeerJ', 7], ['Raffles Bulletin of Zoology', 4], ['Species Diversity', 5], ['Systematic Parasitology', 8], ['ZooKeys', 1], ['Zoologia', 3], ['Zoological Science', 1], ['Zoosystema', 168], ['Zootaxa', 52] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=278)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 12, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);