function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Amphibian & Reptile Conservation', 1], ['Check List', 2], ['European Journal of Taxonomy', 1], ['Evolutionary Systematics', 1], ['Vertebrate Zoology', 4], ['ZooKeys', 1], ['Zoosystematics and Evolution', 1], ['Zootaxa', 32] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=43)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);