function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Entomologica Musei Nationalis Pragae', 1], ['Amurian Zoological Journal', 1], ['Ecologica Montenegrina', 10], ['Geodiversitas', 2], ['Insecta Mundi', 1], ['Investigaciones zoológicas chilenas', 1], ['Mémoires du Muséum national d\'Histoire naturelle', 5], ['Systematic Entomology', 3], ['The Coleopterists Bulletin', 3], ['Ukrainian Journal of Ecology', 1], ['ZooKeys', 1], ['Zootaxa', 18] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=47)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 12, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);