function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Bulletin of the American Museum of Natural History', 10], ['Check List', 7], ['Papéis Avulsos de Zoologia', 3], ['Public Library of Science, ONE', 1], ['ZooKeys', 4], ['Zoosystema', 2], ['Zootaxa', 23] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=50)', 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);