[+] Switch terms when generating series data

This commit is contained in:
Hykilpikonna
2019-12-07 15:05:30 -05:00
parent b0a6c5fece
commit 0e60a3d93d
@@ -152,6 +152,10 @@ export default class OverallLine extends Vue
// Data point on this specific date
let thisValue = data.find(a => a[0] == time);
// Switching terms
if (Constants.TERMS.find(t => t.getTime() == time))
lastValue = null;
// Find value
return thisValue == null
? lastValue == null ? null : [time, lastValue[1]]