function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Parasitologica', 4], ['Annales zoologici', 1], ['European Journal of Taxonomy', 2], ['Journal of Natural History', 6], ['Memoirs of the Geological Society of America', 1], ['Proceedings of the Japanese Society of Systematic Zoology', 7], ['Records of the Australian Museum', 2], ['Species Diversity', 3], ['Syst Parasitol', 3], ['Vestnik Zoologii', 2], ['ZooKeys', 2], ['Zoological Science', 20], ['Zootaxa', 27] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=80)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 13, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);