diff --git a/covid.js b/covid.js index cfaf278501f7f84ddb07a70686ec44c9754bc370..9000aabedb2542c5f94be757845ee91adf393dc3 100644 --- a/covid.js +++ b/covid.js @@ -1616,6 +1616,10 @@ let updateChartSettings = () => { theChart.data.new_datasets.forEach((el, idx)=>{ theChart.data.datasets[idx + 3] = theChart.data.new_datasets[idx] }) + // remove any "extra" datasets + for (var i=0; (theChart.data.new_datasets.length + 3)