function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annales Historico-Naturales Musei Nationalis Hungarici, Zoology', 1], ['Bulletin de la Société Impériale des Naturalistes de Moscou', 1], ['New Zealand journal of science', 1], ['Proceedings of the Hawaiian Entomological Society', 1], ['Proceedings of the Royal Society, B: Biological Sciences', 2], ['The Coleopterists Bulletin', 1], ['ZooKeys', 3], ['Zootaxa', 3] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=13)', 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);