function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 1], ['Biodiversity Data Journal', 12], ['Japanese Journal of Zoology', 2], ['Journal of helminthology', 1], ['Proceedings of the Helminthological Society of Washington', 1], ['Records of the Indian Museum', 1], ['University of Wisconsin Studies in Science', 1], ['Vestnik Zoologii', 2], ['Zoodiversity', 6], ['Zoological Journal of the Linnean Society', 5], ['Zoopathologica', 3], ['Zootaxa', 24] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=59)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 12, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);