function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Australian Journal of Entomology', 1], ['Bulletin of the British Museum (Natural History). Entomology', 1], ['Insects of Guam II', 9], ['Journal of Natural History', 2], ['Proceedings of the Linnean Society of London, Zoology', 3], ['Taxonomic Monographs on Neotropical Hymenoptera', 4], ['The Entomologist', 1], ['Transactions of the Linnean Society of London', 10], ['ZooKeys', 14], ['Zootaxa', 444], ['Öfversigt af Konglelige Vetenskaps-Akademiens Förhandlingar', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=490)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 11, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);