function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 5], ['Check List', 3], ['Evolutionary Systematics', 1], ['Herpetologica', 1], ['Herpetozoa', 2], ['North-Western Journal of Zoology', 1], ['Revue suisse de Zoologie', 2], ['Vertebrate Zoology', 3], ['ZooKeys', 7], ['Zootaxa', 20] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=45)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 10, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);