function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 6], ['J. Dixwell', 1], ['Laurentius Salvius', 10], ['Nouveau dictionnaire d\'histoire naturelle [ed. 2]', 3], ['The Zoological Journal', 1], ['Transactions of the Linnean Society of London', 1], ['Treuttel', 1], ['ZooKeys', 5], ['Zoosystema', 7], ['Zootaxa', 16] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=51)', 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);