function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 2], ['Biodiversity Data Journal', 4], ['Journal of Natural History', 2], ['Laurentius Salvius', 5], ['Records of the Auckland Museum', 1], ['Ruthenica, Russian Malacological Journal', 2], ['The Bulletin of the Russian Far East Malacological Society', 6], ['The Zoological Journal', 1], ['ZooKeys', 5], ['Zoological Journal of the Linnean Society', 5], ['Zoosystema', 7], ['Zoosystematics and Evolution', 13], ['Zootaxa', 72] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=125)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 13, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);