function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Ann. Gembloux', 1], ['Biodiversity Data Journal', 1], ['Bulletin of the Department of Agriculture, Jamaica', 1], ['Insecta Mundi', 5], ['Journal of Natural History', 1], ['U. S. Department of Agriculture, Bureau of Entomology, Technical Series', 1], ['Zootaxa', 33] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=43)', 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);