function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annals and magazine of natural history', 1], ['Monatsberichte der Königlich Preussischen Akademie des Wissenschaften zu Berlin', 3], ['Philosophical Transactions of the Royal Society of London', 9], ['Report on the Scientific Results of the Voyage of H. M. S. Challenger during the Years 1873 – 76, Zoology', 2], ['ZooKeys', 36], ['Zootaxa', 77] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=128)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 6, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);