function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Bulletin of the American Museum of Natural History', 2], ['Handbook of the Mammals of the World – Volume 7 Rodents II', 23], ['Mammal Species of the World (1 st Edition)', 8], ['Mammal Species of the World (2 nd Edition)', 15], ['Mammal Species of the World: a Taxonomic and Geographic Reference (3 rd Edition), Volume 2', 18], ['ZooKeys', 1], ['Zoological Journal of the Linnean Society', 1], ['Zootaxa', 5] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=73)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 8, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);