Graphing Ukrainian territorial control over time

Include territory taken before 2022 Last 180 days Last 365 days All let chartSQKM; let chartROC; let labels; let values; let before2022Checked = true; const PRE_2022 = 43_963; document.getElementById('pre-2022').addEventListener('click', (e) = { before2022Checked = e.currentTarget.checked; chartSQKM.data.datasets[0].data = values.map(v = v - (before2022Checked? 0 : PRE_2022)); chartSQKM?.update();…