function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 1], ['European Journal of Taxonomy', 2], ['Journal of Natural History', 22], ['Journal of Species Research', 5], ['Raffles Bulletin of Zoology', 17], ['Records of the Zoological Survey of India', 4], ['ZooKeys', 10], ['Zootaxa', 113] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=174)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);