function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Australian Journal of Entomology', 5], ['Entomo Helvetica', 1], ['International Journal of Myriapodology', 18], ['Journal of Entomology and Zoology', 2], ['Journal of Natural History', 7], ['Records of the Western Australian Museum Supplement', 50], ['Transactions of the Linnean Society of London', 2], ['ZooKeys', 9], ['Zoosystema', 3], ['Zootaxa', 128] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=225)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 10, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);