function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Aspects of Nonmarine Cretaceous Geology', 3], ['Bulletin of the American Museum of Natural History', 9], ['Cretaceous Research', 2], ['Evolutionary Biology', 5], ['Journal of Vertebrate Paleontology', 8], ['Nature', 5], ['PLoS ONE', 3], ['Predatory Dinosaurs of the World', 4], ['Proceedings of the Royal Society, Series B', 4], ['Science', 6], ['Scientific Reports', 4], ['The Anatomical Record', 3], ['The Dinosauria', 3], ['Tyrannosaurus rex, the tyrant king', 7], ['Zoological Journal of the Linnean Society', 4], ['Other (30)', 38] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=108)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 16, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);