Commit 62a0f765 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

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

parent 8a807aed
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment