File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 49
49
@date-axis =" (visible) => showDateAxis = visible"
50
50
/>
51
51
52
- <div
53
- v-if =" isTypeGrowthStackedArea"
54
- style =" position : absolute ; top : 3rem ; left : 3rem ; font-style : italic ;" >
55
- {{ growthDataset.length }}
56
- </div >
57
-
58
52
<stacked-area-vis
59
53
v-if =" chartShown && (isTypeGrowthStackedArea)"
60
54
:read-only =" readOnly"
@@ -1091,6 +1085,14 @@ export default {
1091
1085
1092
1086
mounted () {
1093
1087
this .visHeight = this .chartHeight
1088
+
1089
+ if (this .isTypeGrowthStackedArea ) {
1090
+ this .growthDataset = this .zoomExtent .length > 0 ? this .getGrowthDataset ().filter ((d ) => {
1091
+ return d .date >= this .zoomExtent [0 ] && d .date < this .zoomExtent [1 ]
1092
+ }) : this .getGrowthDataset ()
1093
+
1094
+ console .log (' growthDataset powerEnergyDataset' , this .growthDataset )
1095
+ }
1094
1096
},
1095
1097
1096
1098
methods: {
@@ -1212,7 +1214,6 @@ export default {
1212
1214
} else {
1213
1215
obj[ftId] = d[ftId] - this .powerEnergyDataset [i - 1 ][ftId]
1214
1216
}
1215
-
1216
1217
})
1217
1218
1218
1219
dataset .push (obj)
You can’t perform that action at this time.
0 commit comments