function drawChartTreatmentsPerSource() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['Amphibian & Reptile Conservation', 5], ['Fossil Record', 1], ['Geodiversitas', 5], ['Herpetozoa', 1], ['Ichthyology & Herpetology', 1], ['Journal of Systematic Palaeontology', 1], ['Palaeontologia Electronica', 2], ['Records of the Zoological Survey of India', 5], ['Vertebrate Zoology', 2], ['ZooKeys', 4], ['Zoodiversity', 3], ['Zoological Journal of the Linnean Society', 2], ['Zootaxa', 7] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Journal (n=39)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerSource', 'pie', 13, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerSource')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerSource);