Skip to content
Snippets Groups Projects
Commit 62a0f765 authored by Jose Ivan Vargas Lopez's avatar Jose Ivan Vargas Lopez
Browse files

Increased the height of the graph when dealing with 3 plus legends

parent 8a807aed
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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()
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