Skip to content

Commit

Permalink
more date shift poc
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 20, 2023
1 parent 021140a commit 2963856
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store/chart.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2963856

Please sign in to comment.