function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Cahiers de Biologie Marine', 3], ['European Journal of Taxonomy', 27], ['Journal of Natural History', 1], ['Marine Biodiveristy', 2], ['Marine Biodiversity', 1], ['PeerJ', 1], ['Raffles Bulletin of Zoology', 7], ['Species Diversity', 1], ['The Open Zoology Journal', 1], ['Transactions of the American Microscopical Society', 1], ['Zoological Science', 1], ['Zoological Studies', 1], ['Zootaxa', 27] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=74)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 13, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);