function drawChartSpecimensByEpithet() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Specimen Count (overall)'], ['amboinensis', 2], ['coronata', 7], ['fallax', 8], ['hilgendorfi', 5], ['pileifera', 13], ['pitiensis', 2], ['tuberculata', 33], ['tumida', 2] ]); var chartOptions = { pieHole: 0, title: 'Specimens by Species (n=72)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'SpecimensByEpithet', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivSpecimensByEpithet')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartSpecimensByEpithet);