function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 2], ['Hydrobiologia', 1], ['Journal of Natural History', 13], ['Mem. Soc Zool Fr', 1], ['Nauplius', 5], ['Pap Proc R Soc Van Dieman\'s Land', 1], ['The Journal of the Linnean Society of London, Zoology', 1], ['Zoological Journal of the Linnean Society', 6], ['Zootaxa', 67] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=97)', 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);