diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-30 18:48:52 -0500 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-30 18:48:52 -0500 |
commit | 62a0f76516c737f5f6e06337f07fccc1c22ac4ec (patch) | |
tree | 82fab2a2dd78b328668537cb62b90e0cbfd84645 /app/assets/javascripts/monitoring | |
parent | 8a807aedb8f0ee21fa366c3e734fd5b7d51e744a (diff) | |
download | gitlab-ce-62a0f76516c737f5f6e06337f07fccc1c22ac4ec.tar.gz |
Increased the height of the graph when dealing with 3 plus legends
Diffstat (limited to 'app/assets/javascripts/monitoring')
-rw-r--r-- | app/assets/javascripts/monitoring/components/graph.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/monitoring/components/graph.vue b/app/assets/javascripts/monitoring/components/graph.vue index 0b163388801..029bb64a990 100644 --- a/app/assets/javascripts/monitoring/components/graph.vue +++ b/app/assets/javascripts/monitoring/components/graph.vue @@ -147,13 +147,13 @@ }, renderAxesPaths() { - this.timeSeries = createTimeSeries(this.columnData.queries[0].result, + this.timeSeries = createTimeSeries(this.graphData.queries[0].result, this.graphWidth, this.graphHeight, this.graphHeightOffset); - if (this.timeSeries.length > 4) { - this.baseGraphHeight = this.baseGraphHeight += (this.timeSeries.length - 4) * 20; + if (this.timeSeries.length > 3) { + this.baseGraphHeight = this.baseGraphHeight += (this.timeSeries.length - 3) * 20; } const axisXScale = d3.time.scale() |