function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Indian Journal of Helminthology', 1], ['Indian Journal of Parasitology', 1], ['Indian Journal of Physical and Natural Sciences Section A', 1], ['Indian Journal of Zoology', 1], ['Indian Journal of Zootomy', 1], ['Norwegian Journal of Zoology', 1], ['Proceedings of the Helminthological Society of Washington', 1], ['Proceedings of the Indian Science Congress', 1], ['Proceedings of the National Institute of Sciences in India', 1], ['Rivista di Parassitologia', 2] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=11)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 10, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);