function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annales du Musee Royale de l\'Afrique Centrale, Zoologie, Serie 8', 2], ['Aqua, Journal of Ichthyology and Aquatic Biology', 2], ['Revue de Zoologie et de Botanique Africaines', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=5)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 3, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);