function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Bolletino della Società Adriatica di Scienze Naturali in Trieste', 6], ['Japanese Journal of Zoology', 1], ['Journal of the Royal Society of New South Wales', 1], ['Zoodiversity', 1], ['Zoopathologica', 1], ['Zootaxa', 34] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=44)', 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);