function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Earth and Environmental Science Transactions of the Royal Society of Edinburgh', 2], ['Geodiversitas', 1], ['Journal of Natural History', 2], ['Journal of the Marine Biological Association of the United Kingdom', 1], ['Journal of the Royal Society of New Zealand', 1], ['Records of the Australian Museum', 1], ['Special Papers in Palaeontology', 2], ['Systematics and Biodiversity', 1], ['Zoosystema', 2], ['Zoosystematics and Evolution', 1], ['Zootaxa', 38] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=52)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 11, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);