diff --git a/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js b/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js index ce937e5d3a74d14e33f07ff3b4e4aa722e25084f..f6ba20ac71d98e7472b254f4234bcc9fc5bdbf6e 100644 --- a/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js +++ b/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js @@ -803,8 +803,8 @@ DagreGraphRenderer.prototype.drawHeaders = function() var nodesAtLevel = sampleNodeGroup[i]; if (nodesAtLevel.length < 1) return 0; if (!nodesAtLevel[0]) return 0; - var dagre = nodesAtLevel[0].__data__.dagre; - return dagre.y + dagre.height - 1; + var dagre = nodesAtLevel.filter(function(d) { return d != null }).map(function(d) { return d.__data__.dagre }); + return d3.min(dagre, function(d) { return d.y + d.height }) - 1; }) .attr("opacity", function(d, i) { var nodesAtLevel = sampleNodeGroup[i];