function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity journal', 1], ['E. W. Jansen', 1], ['Insecta Mundi', 1], ['J. Hübner', 2], ['Journal of Natural History', 3], ['Nota Lepidopterologica', 9], ['Nunquam Otiosus', 1], ['Transactions of the Entomological Society of London', 1], ['Zoological Journal of the Linnean Society', 16], ['Zootaxa', 98] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=133)', 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);