function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Entomologica Musei Nationalis Pragae', 6], ['Biodiversity Data Journal', 4], ['Bulletin of the American Museum of Natural History', 1], ['Caucasian Entomological Bulletin', 3], ['Far Eastern Entomologist', 9], ['Insecta Mundi', 5], ['Journal of Natural History', 5], ['Raffles Bulletin of Zoology', 2], ['ZooKeys', 1], ['Zoosystema', 2], ['Zoosystematica Rossica', 3], ['Zootaxa', 16] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=57)', 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);