function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 22], ['Bulletin of the National Museum of Nature and Science, Series A (Zoology)', 1], ['Invertebrate Taxonomy', 4], ['Journal of Natural History', 96], ['Journal of Species Research', 12], ['Raffles Bulletin of Zoology', 55], ['Revue suisse de Zoologie', 2], ['VermEcology', 2], ['ZooKeys', 32], ['Zootaxa', 518], ['Öfversigt af Konglelige Vetenskaps-Akademiens Förhandlingar', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=745)', 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);