function drawChartTreatmentsPerYear() { var chartData = google.visualization.arrayToDataTable([ ['Series', 'Number of Treatments'], ['2024', 259], ['2023', 198], ['2021', 373], ['2020', 162], ['2019', 196], ['2018', 118], ['2017', 174], ['2016', 96], ['2015', 121], ['2014', 243], ['2013', 276], ['2012', 99], ['2010', 59], ['2008', 59], ['2006', 73], ['Other (29)', 437] ]); var chartOptions = { pieHole: 0, title: 'Treatments per Year (n=2943)', 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);