function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Universitatis Bergensis, Series Mathematica Rerumque Naturalium', 1], ['Bolletino della Società Adriatica di Scienze Naturali in Trieste', 1], ['Bulletin de l\'Institut Océanographique de Monaco', 1], ['Journal of Natural History', 1], ['Journal of Parasitology', 1], ['Transactions of the Royal Society of New Zealand', 1], ['Zootaxa', 2] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=8)', 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);