function drawChartTreatmentsPerAuthor() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Blackburn, T.', 2], ['Liebherr, James K.', 8], ['Liebherr, James K. & Kahoolaa, Raina L.', 1], ['Liebherr, James K. & Porch, Nick', 7], ['Liebherr, James K. & Short, Andrew Edward Z.', 1], ['Sharp, David', 2] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Author (n=21)', 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);