Skip to content
Snippets Groups Projects
Unverified Commit 2e66da48 authored by Mike Greiling's avatar Mike Greiling
Browse files

add option to hide the graph legend

parent 76b65bb2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,6 +21,11 @@
type: String,
required: true,
},
showLegend: {
type: Boolean,
required: false,
default: true,
},
documentationPath: {
type: String,
required: true,
Loading
Loading
@@ -159,6 +164,7 @@
:deployment-data="store.deploymentData"
:project-path="projectPath"
:tags-path="tagsPath"
:show-legend="showLegend"
/>
</graph-group>
</div>
Loading
Loading
Loading
Loading
@@ -52,6 +52,11 @@
type: String,
required: true,
},
showLegend: {
type: Boolean,
required: false,
default: true,
},
},
 
data() {
Loading
Loading
@@ -182,7 +187,9 @@
this.graphHeightOffset,
);
 
if (this.timeSeries.length > 3) {
if (!this.showLegend) {
this.baseGraphHeight -= 60;
} else if (this.timeSeries.length > 3) {
this.baseGraphHeight = this.baseGraphHeight += (this.timeSeries.length - 3) * 20;
}
 
Loading
Loading
@@ -246,6 +253,7 @@
transform="translate(70, 20)"
/>
<graph-legend
v-if="showLegend"
:graph-width="graphWidth"
:graph-height="graphHeight"
:margin="margin"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment