function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 2], ['Bulletin of Marine Science', 1], ['Bulletin of the American Museum of Natural History', 3], ['Bulletin of the United States National Museum', 2], ['Investigative Reports of the Oceanographic Research Institute Durban', 1], ['Memoirs of the Museum of Comparative Zoology, at Harvard College', 1], ['Mémoires du Musée Royal d\'Histoire Naturelle de Belgique, Série 2', 1], ['Proceedings of the United States National Museum, 3', 1], ['Zootaxa', 8] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=20)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 9, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);