function drawChartTreatmentsPerAuthor() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Fitzhugh, Kirk & Nogueira, João Miguel De Matos', 2], ['Glasby, Christopher J. & Hutchings, Pat', 1], ['Lavesque, Nicolas & Hutchings, Pat & Daffe, Guillemine', 1], ['Lavesque, Nicolas & Hutchings, Pat & Londoño-Mesa, Mario H.', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Author (n=5)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerAuthor', 'pie', 4, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerAuthor')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerAuthor);