function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['European Journal of Taxonomy', 48], ['Journal of Natural History', 20], ['Subterranean Biology', 1], ['ZooKeys', 4], ['Zoological Journal of the Linnean Society', 69], ['Zoological Science', 3], ['Zootaxa', 85] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=230)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 7, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);