function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Deterville', 1], ['London', 1], ['Proceedings of the Biological Society of Washington', 1], ['Report on the Scientific Results of the Voyage of H. M. S. Challenger During the Years 1873 – 76, Zoology', 2], ['ZooKeys', 3], ['Zoosystema', 26], ['Zootaxa', 15] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=49)', 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);