function drawChartTreatmentsPerYear() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['2024', 22], ['2023', 165], ['2022', 88], ['2021', 76], ['2020', 113], ['2019', 159], ['2018', 269], ['2017', 51], ['2016', 68], ['2015', 169], ['2014', 58], ['2013', 25], ['2012', 50], ['2009', 23], ['2007', 44], ['Other (8)', 20] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Year (n=1400)', fontSize: 'automatic', doWeHaveDanglingCommas: 'No ;-)' }; if (window.customizeGoogleChartOptions) customizeGoogleChartOptions(chartOptions, 'TreatmentsPerYear', 'pie', 16, 0); var chart = new google.visualization.PieChart(document.getElementById('chartDivTreatmentsPerYear')); chart.draw(chartData, chartOptions); } google.load('visualization', '1', {'packages': ['corechart']}); google.setOnLoadCallback(drawChartTreatmentsPerYear);