function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Copeia', 1], ['Journal Imp. Fish. Inst. Tokyo', 1], ['Monatsberichte der Akademie der Wissenschaft zu Berlin', 2], ['Proceedings of the United States National Museum, 3', 1], ['Report of the British Association for the Advancement of Science', 1], ['Zootaxa', 2] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=8)', 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);