function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 5], ['European Journal of Taxonomy', 1], ['Fauna of New Zealand', 33], ['Journal of natural history', 7], ['Raffles Bulletin of Zoology', 3], ['Records of the Australian Museum', 27], ['Records of the Canterbury Museum', 1], ['Schultz-Wundermann', 2], ['Zootaxa', 45] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=124)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 9, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);