function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Dortmunder Beiträge zur Landeskunde, Naturwissenschaftliche Mitteilungen', 1], ['Scientific Papers, Illinois State Museum', 1], ['Transactions of the Connecticut Academy of Arts and Sciences', 2], ['Transactions of the Royal Society of Edinburgh, Earth Sciences', 3] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=7)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 4, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);