function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annals and Magazine of Natural History, Including Zoology, Botany and Geology, Being a Continuation of the \' Magazine of Botany ', 2], ['New Zealand Institute', 3], ['New Zealand Institute bulletin', 5], ['Scientific transactions of the Royal Dublin Society', 5], ['The zoology of the voyage of H. M. S. Erebus & Terror, under the command of Captain Sir James Clark Ross, R. N., F. R. S., durin', 1], ['Transactions and proceedings of the New Zealand Institute', 2], ['Transactions of the Royal Society of New Zealand', 1], ['Zootaxa', 5] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=24)', 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);