Skip to content

Commit a8efd1a

Browse files
committed
Fix Issue #4
1 parent 84d8e66 commit a8efd1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reporter/index.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@
643643
}
644644
devices = Array.from(devicesSet);
645645
// GRAPH
646-
var height = 150*(devices.length-1);
646+
let devicesLength = devices.length > 1 ? (devices.length-1) : 1;
647+
var height = 150*devicesLength;
647648
var c20c = d3.scale.category10();
648649
d3.select("#chart_row" + (i+1))
649650
.text(jsonObject["name"])

0 commit comments

Comments
 (0)