function drawChartTreatmentsPerAuthor() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Geoffroy Saint-Hilaire, E.', 1], ['Harlan, Richard', 1], ['Hart, John A. & Detwiler, Kate M. & Gilbert, Christopher C.', 1], ['Linnaeus, Carolus', 23], ['Raffles, Thomas Stamford', 5], ['Zimmermann, E. A. W.', 3] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Author (n=34)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerAuthor', 'pie', 6, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerAuthor')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerAuthor);