function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 3], ['Bulletin de l\'Institut Océanographique de Monaco', 1], ['Copeia', 3], ['Cybium', 1], ['European Journal of Taxonomy', 2], ['Proceedings of the California Academy of Sciences, Series 4', 6], ['Species Diversity', 1], ['Zootaxa', 12] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=29)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);