function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Fauna of West Bengal Part 3 (Arachnida and acari)', 7], ['Journal of Natural History', 1], ['Records of the Zoological Survey of India', 2], ['Riceland Spiders of South and Southeast Asia', 2], ['ZooKeys', 11], ['Zootaxa', 14] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=37)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 6, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);