function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 1], ['Journal of Natural History', 1], ['Journal of the Malacological Society Australia', 2], ['Kongl. Vetenskaps Academiens Nya Handlingar', 1], ['Mémoires du Muséum national d\'Histoire naturelle', 9], ['Report on the Collections of Natural History Made in the Antarctic Regions during the Voyage of the Southern Cross', 1], ['The Bulletin of the Russian Far East Malacological Society', 3], ['ZooKeys', 1], ['Zoosystematics and Evolution', 3], ['Zootaxa', 21] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=43)', 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);