function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Geodiversitas', 1], ['Handbook of the Mammals of the World – Volume 1 Carnivores', 2], ['Mammal Species of the World: a Taxonomic and Geographic Reference (3 rd Edition), Volume 1', 5], ['Papéis Avulsos de Zoologia', 1] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=9)', 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);