From c50348c3128135cc0e7049eef9bdf9808c18087e Mon Sep 17 00:00:00 2001 From: renato Date: Wed, 27 Jan 2016 11:43:58 +0100 Subject: [PATCH] datasetexplorer --- datalets/datasetexplorer-datalet/js/buildtreemap.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/datalets/datasetexplorer-datalet/js/buildtreemap.js b/datalets/datasetexplorer-datalet/js/buildtreemap.js index 2bb760f..95137aa 100755 --- a/datalets/datasetexplorer-datalet/js/buildtreemap.js +++ b/datalets/datasetexplorer-datalet/js/buildtreemap.js @@ -106,7 +106,7 @@ function build(root, meta, place_holder, select_listener, width, height) { .datum(d.parent) .on("click", transition) .select("text") - .text(name(d)); + .text( name(d) ); var g1 = svg.insert("g", ".grandparent") .datum(d) @@ -145,6 +145,7 @@ function build(root, meta, place_holder, select_listener, width, height) { } else if (d._children && !d._children[0]._children) { // LAST LVL data[0] = "last"; + data[6] = d._children[0].name; //data[6] = "datasert url"; } else { // MIDDLE LVL @@ -324,8 +325,8 @@ function build(root, meta, place_holder, select_listener, width, height) { function name(d) { return d.parent - ? name(d.parent) + "." + d.name - : d.name; + ? name(d.parent) + " >> " + checkProviderName(d.name) + : checkProviderName(d.name); } }; -- libgit2 0.21.4