function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 7], ['Report on the scientific results of the voyage of H. M. S. Challenger', 7], ['ZooKeys', 1], ['Zoological Journal of the Linnean Society', 1], ['Zoologische Mededelingen, Leiden', 13], ['Zoosystema', 2], ['Zootaxa', 51] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=82)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 7, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);