function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annals of Natural History; or, Magazine of Zoology, Botany and Geology, Being a Continuation of the \' Magazine of Botany and Zoo', 1], ['Journal of Natural History', 6], ['ZooKeys', 70], ['Zoological Systematics', 2], ['Zootaxa', 68] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=147)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 5, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);