From ef3c2b10bf5f338281700bdcf715dac40617eec0 Mon Sep 17 00:00:00 2001 From: Shefali Date: Fri, 23 Jun 2023 14:06:06 -0700 Subject: [PATCH 1/6] New option to show/hide stacked plot aggregate legend - defaulted to not show. Use the Plot component in the StackedPlotItem component for simplicity and show/hide sub-legends as needed. --- src/plugins/plot/MctPlot.vue | 3 +- src/plugins/plot/Plot.vue | 72 +++++++- src/plugins/plot/chart/MctChart.vue | 6 +- src/plugins/plot/configuration/LegendModel.js | 3 +- .../plot/inspector/PlotOptionsBrowse.vue | 8 + .../plot/inspector/forms/LegendForm.vue | 27 ++- .../plot/legend/PlotLegendItemCollapsed.vue | 11 +- src/plugins/plot/stackedPlot/StackedPlot.vue | 19 ++- .../plot/stackedPlot/StackedPlotItem.vue | 160 ++++-------------- 9 files changed, 164 insertions(+), 145 deletions(-) diff --git a/src/plugins/plot/MctPlot.vue b/src/plugins/plot/MctPlot.vue index 899af22c72b..cb23e0c505d 100644 --- a/src/plugins/plot/MctPlot.vue +++ b/src/plugins/plot/MctPlot.vue @@ -77,6 +77,7 @@

    Legend

    +
  • +
    + Show legend per plot +
    +
    {{ showLegendsForChildren ? 'Yes' : 'No' }}
    +