From 2963856a890fbb8858968f29dee1ce6e904ac1ab Mon Sep 17 00:00:00 2001 From: solderq35 Date: Tue, 19 Dec 2023 16:03:31 -0800 Subject: [PATCH] more date shift poc --- src/store/chart.module.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/chart.module.js b/src/store/chart.module.js index 020c3317..5b18d3a3 100644 --- a/src/store/chart.module.js +++ b/src/store/chart.module.js @@ -65,18 +65,18 @@ const actions = { // console.log( data ) let testmap = new Map() for (let newkey of data.keys()) { - // console.log(newkey) - // align new key with original datestart testmap.set(newkey - (nov - oct), data.get(newkey)) } - console.log(testmap) // comment out the 3 lines below to test experimental moving chart left // data = testmap - // reqPayload.dateStart = oct + // reqPayload.dateStart = oct - (nov - oct - (dec - nov)) // shift date start left to account for different month length // reqPayload.dateEnd = nov } + + console.log(data) + let chartData = { label: store.getters.name, backgroundColor: store.getters.color,