function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Edinburgh encyclopaedia, conducted by David Brewster', 1], ['Journal of Crustacean Biology', 1], ['Journal of Natural History', 1], ['Species Diversity', 1], ['ZooKeys', 14], ['Zoological Science', 1], ['Zootaxa', 59] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=78)', 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);