function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 22], ['Check List', 4], ['Gebauer', 1], ['Gottl. August. Lange', 1], ['Laurentii Salvii', 5], ['Laurentius Salvius', 41], ['Leigh et Sotheby', 2], ['Nouveau dictionnaire d\'histoire naturelle [ed. 2]', 10], ['Proceedings of the Zoological Society of London', 1], ['Transactions of the Linnean Society of London', 1], ['Utrecht', 1], ['Zoosystema', 2], ['Zootaxa', 4] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=95)', 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);