function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['African Invertebrates', 4], ['International journal of dipterological research', 6], ['Records of the Dominion Museum', 1], ['Senckenbergiana Biologica', 1], ['Transactions and proceedings of the New Zealand Institute', 33], ['ZooKeys', 8], ['Zootaxa', 22] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=75)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 7, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);