function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Annals of the Carnegie Museum', 4], ['Ichthyological Exploration of Freshwaters', 1], ['Ichthyological exploration of freshwaters', 2], ['Neotropical Ichthyology', 1], ['Proceedings of the Academy of Natural Sciences of Philadelphia', 1], ['Revista Brasileira de Zoologia', 1], ['ZooKeys', 2], ['Zoologia', 9] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=21)', 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);