function drawChartTreatmentsPerAuthor() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Dragesco, J.', 2], ['Foissner, Wilhelm', 1], ['Gelei, J.', 1], ['Kahl, Alfred', 3], ['Stokes, Alfred Cheatham', 3], ['Vuxanovici, A.', 3], ['Wenzel, Fritz', 1], ['Wilbert, Norbert & Song, Weibo', 3] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Author (n=17)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerAuthor', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerAuthor')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerAuthor);