function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Bulletin of the British Museum (Natural History), Zoology Series', 1], ['Journal of Natural History', 3], ['Publications of the Seto Marine Biological Laboratory', 1], ['Zoological Journal of the Linnean Society', 4], ['Zoosystema', 1], ['Zootaxa', 30] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=40)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 6, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);