function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acarologia', 17], ['Acta Zoologica Academiae Scientiarum Hungaricae', 1], ['African Invertebrates', 1], ['Annales zoologici', 1], ['Bulletin of the British Museum of Natural History (Zoology series)', 6], ['Genus', 2], ['Journal of Natural History', 2], ['Persian Journal of Acarology', 3], ['Zootaxa', 55] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=88)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 9, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);