+ pathObjIndex === 0 && pathObject?.type === 'telemetry.plot.stacked'
+ );
+ }
+ },
mounted() {
this.initialize();
this.initFormValues();
@@ -200,6 +219,11 @@ export default {
modelProp: 'showUnitsWhenExpanded',
coerce: Boolean,
objectPath: 'configuration.legend.showUnitsWhenExpanded'
+ },
+ {
+ modelProp: 'showLegendsForChildren',
+ coerce: Boolean,
+ objectPath: 'configuration.legend.showLegendsForChildren'
}
];
},
@@ -213,6 +237,7 @@ export default {
this.showMinimumWhenExpanded = this.legend.get('showMinimumWhenExpanded');
this.showMaximumWhenExpanded = this.legend.get('showMaximumWhenExpanded');
this.showUnitsWhenExpanded = this.legend.get('showUnitsWhenExpanded');
+ this.showLegendsForChildren = this.legend.get('showLegendsForChildren');
},
updateForm(formKey) {
const newVal = this[formKey];
diff --git a/src/plugins/plot/legend/PlotLegendItemCollapsed.vue b/src/plugins/plot/legend/PlotLegendItemCollapsed.vue
index f87c24976b..26072b8195 100644
--- a/src/plugins/plot/legend/PlotLegendItemCollapsed.vue
+++ b/src/plugins/plot/legend/PlotLegendItemCollapsed.vue
@@ -181,9 +181,14 @@ export default {
},
toggleHover(hover) {
this.hover = hover;
- this.$emit('legendHoverChanged', {
- seriesKey: this.hover ? this.seriesObject.keyString : ''
- });
+ this.$emit(
+ 'legendHoverChanged',
+ this.hover
+ ? {
+ seriesKey: this.seriesObject.keyString
+ }
+ : undefined
+ );
}
}
};
diff --git a/src/plugins/plot/stackedPlot/StackedPlot.vue b/src/plugins/plot/stackedPlot/StackedPlot.vue
index c57cfa91eb..3a98098e52 100644
--- a/src/plugins/plot/stackedPlot/StackedPlot.vue
+++ b/src/plugins/plot/stackedPlot/StackedPlot.vue
@@ -27,9 +27,10 @@
:class="[plotLegendExpandedStateClass, plotLegendPositionClass]"
>