function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acta Biologica Universitatis Daugavpiliensis', 2], ['Acta Entomologica Musei Nationalis Pragae', 38], ['Caucasian Entomological Bulletin', 3], ['Far Eastern Entomologist', 1], ['Journal of Natural History', 55], ['Proceedings of the Japanese Society of Systematic Zoology', 1], ['Russian Entomological Journal', 11], ['The Coleopterists Bulletin', 1], ['ZooKeys', 4], ['Zootaxa', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=117)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 10, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);