function drawChartTreatmentsPerAuthor() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Matsunaga, Janis N. & Howarth, Francis G.', 1], ['Smithers, C. N.', 1], ['Smithers, Courtenay Neville', 1], ['Thornton, Ian W. B. & New, Tim R.', 11], ['Thornton, Ian W. B. & Smithers, Courtenay Neville', 5] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Author (n=19)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerAuthor', 'pie', 5, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerAuthor')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerAuthor);