function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['American Museum Novitates', 5], ['Fourth Symposium on Mesozoic Terrestrial Ecosystems', 1], ['Mesozoic Vertebrate Life', 1], ['Palaeontologica Polonica', 2], ['Smithsonian Miscellaneous Collections', 2], ['Special papers in palaeontology', 1], ['The Dinosauria', 2], ['The Ottawa Naturalist', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=15)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);