function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Biodiversity Data Journal', 1], ['Iwanami Shoten', 2], ['Journal of Natural History', 1], ['Journal of the Ceylon Branch of the Royal Asiatic Society', 3], ['Papéis Avulsos de Zoologia', 3], ['Raffles Bulletin of Zoology', 4], ['Records of the Auckland Institute and Museum', 1], ['ZooKeys', 10], ['Zootaxa', 37] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=62)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 9, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);