Skip to content

Commit 15ca8ba

Browse files
committed
revert to stacked chart when switching from energy growth chart to power chart
1 parent ca00b45 commit 15ca8ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/Charts/PowerEnergyChart.vue

+7
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,13 @@ export default {
10721072
if (this.isTypeGrowthStackedArea) {
10731073
this.updateGrowDataset()
10741074
}
1075+
1076+
if (!this.isEnergyType && this.isTypeGrowthStackedArea) {
1077+
this.$store.commit(
1078+
'chartOptionsPowerEnergy/chartType',
1079+
OPTIONS.CHART_STACKED
1080+
)
1081+
}
10751082
},
10761083
10771084
methods: {

0 commit comments

Comments
 (0)