function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Acarologia', 84], ['Journal of Natural History', 7], ['Persian Journal of Acarology', 8], ['Records of the Zoological Survey of India', 2], ['Soil Organisms', 1], ['Vestnik Zoologii', 4], ['Zoological Journal of the Linnean Society', 1], ['Zootaxa', 178] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=285)', 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);