function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['International Journal for Parasitology: Parasites and Wildlife', 4], ['Journal of Natural History', 1], ['Parasites & Vectors', 4], ['Vestnik Zoologii', 1], ['ZooKeys', 3], ['Zoosystema', 9], ['Zootaxa', 27] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=49)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 7, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);