File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -832,17 +832,16 @@ export default {
832
832
let total = 0
833
833
834
834
this .powerEnergyDomains .forEach ((domain ) => {
835
- total += d[domain .id ] || 0
835
+ const value = d[domain .id ] || 0
836
+ total += value < 0 ? value : 0
836
837
})
837
838
838
839
if (total < lowest) {
839
840
lowest = total
840
841
}
841
842
})
842
843
843
- console .log (' computedGrowthYMin' , lowest)
844
-
845
- return lowest < - 10000 ? lowest * 2 : lowest * 1.1
844
+ return lowest
846
845
},
847
846
848
847
computedGrowthYMax () {
@@ -860,17 +859,16 @@ export default {
860
859
filteredDataset .forEach ((d ) => {
861
860
let total = 0
862
861
this .powerEnergyDomains .forEach ((domain ) => {
863
- total += d[domain .id ] || 0
862
+ const value = d[domain .id ] || 0
863
+ total += value > 0 ? value : 0
864
864
})
865
865
866
866
if (total > highest) {
867
867
highest = total
868
868
}
869
869
})
870
870
871
- console .log (' computedGrowthYMax' , highest)
872
-
873
- return highest < 10000 ? highest * 2 : highest * 1.1
871
+ return highest
874
872
},
875
873
876
874
computedYMin () {
You can’t perform that action at this time.
0 commit comments