function drawChartTreatmentsPerYear() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['2024', 118], ['2023', 366], ['2022', 1525], ['2021', 229], ['2020', 190], ['2019', 81], ['2018', 152], ['2016', 30], ['2015', 40], ['2014', 132], ['2013', 34], ['2012', 161], ['2010', 52], ['2009', 31], ['2006', 28], ['Other (57)', 230] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Year (n=3399)', 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);