Commit c50348c3128135cc0e7049eef9bdf9808c18087e
1 parent
cbe1912d
datasetexplorer
Showing
1 changed file
with
4 additions
and
3 deletions
datalets/datasetexplorer-datalet/js/buildtreemap.js
| ... | ... | @@ -106,7 +106,7 @@ function build(root, meta, place_holder, select_listener, width, height) { |
| 106 | 106 | .datum(d.parent) |
| 107 | 107 | .on("click", transition) |
| 108 | 108 | .select("text") |
| 109 | - .text(name(d)); | |
| 109 | + .text( name(d) ); | |
| 110 | 110 | |
| 111 | 111 | var g1 = svg.insert("g", ".grandparent") |
| 112 | 112 | .datum(d) |
| ... | ... | @@ -145,6 +145,7 @@ function build(root, meta, place_holder, select_listener, width, height) { |
| 145 | 145 | } else if (d._children && !d._children[0]._children) { |
| 146 | 146 | // LAST LVL |
| 147 | 147 | data[0] = "last"; |
| 148 | + data[6] = d._children[0].name; | |
| 148 | 149 | //data[6] = "datasert url"; |
| 149 | 150 | } else { |
| 150 | 151 | // MIDDLE LVL |
| ... | ... | @@ -324,8 +325,8 @@ function build(root, meta, place_holder, select_listener, width, height) { |
| 324 | 325 | |
| 325 | 326 | function name(d) { |
| 326 | 327 | return d.parent |
| 327 | - ? name(d.parent) + "." + d.name | |
| 328 | - : d.name; | |
| 328 | + ? name(d.parent) + " >> " + checkProviderName(d.name) | |
| 329 | + : checkProviderName(d.name); | |
| 329 | 330 | } |
| 330 | 331 | |
| 331 | 332 | }; | ... | ... |