function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['American Museum Novitates', 1], ['Biodiversity Data Journal', 11], ['Bulletin of the United States National Museum', 1], ['Check List', 2], ['Copeia', 3], ['Cybium', 1], ['Memoirs of the Queensland Museum', 2], ['Mölleri apud Heineck et Faber', 1], ['Occasional Papers of the Bernice P. Bishop Museum', 1], ['Records of the Zoological Survey of India', 1], ['Whittaker', 1], ['Zootaxa', 21] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=46)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 12, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);