diff --git a/public/arf.json b/public/arf.json index d976462..7fc678a 100644 --- a/public/arf.json +++ b/public/arf.json @@ -57,7 +57,6 @@ } ] }, - null, { "name": "Specific Sites", "type": "folder", diff --git a/public/js/arf.js b/public/js/arf.js index 3fe7a43..7b31315 100644 --- a/public/js/arf.js +++ b/public/js/arf.js @@ -19,7 +19,9 @@ var vis = d3.select("#body").append("svg") .attr("transform", "translate(" + margin[3] + "," + margin[0] + ")"); d3.json("arf.json").then(function(json) { - root = d3.hierarchy(json); + root = d3.hierarchy(json, function(d) { + return d && d.children ? d.children.filter(function(c) { return c != null; }) : null; + }); root.x0 = height / 2; root.y0 = 0;