Commit 12fe9d17ac70762e15c7e7b3239b2ac8d0a8bceb
1 parent
2fc589e3
datasetexplorer
Showing
9 changed files
with
10 additions
and
7 deletions
datalets/datasetexplorer-datalet/js/buildtreemap.js
| ... | ... | @@ -131,22 +131,25 @@ function build(root, meta, place_holder, select_listener, width, height) { |
| 131 | 131 | .call(rect) |
| 132 | 132 | .attr("onmousemove", function(d) { |
| 133 | 133 | //var data = ["lvl", "name", "color", "description", "logoUrl", "datasets", "datasetUrl"]; |
| 134 | - var data = ["", d.name, d.color, "", "", "0", ""]; | |
| 135 | - //d.name.split(':')[1]??? | |
| 134 | + var data = ["", d.name, d.color, "", "", d.value, ""] | |
| 135 | + var id = d.name.split(':')[1]; | |
| 136 | 136 | if (d.depth == 1) { |
| 137 | 137 | // FIRST LVL |
| 138 | 138 | data[0] = "first"; |
| 139 | - data[3] = "description";//??? | |
| 140 | - data[4] = "http://essi-lab.eu/twiki/pub/GIcat/CKANProfilerGuide/logo-ckan.png";//id??? | |
| 141 | - data[5] = "2222";//meta??? | |
| 139 | + data[1] = meta[id]['title']; | |
| 140 | + data[3] = meta[id]['description']; | |
| 141 | + data[4] = meta[id]['logo_url']; | |
| 142 | + data[4] = ODE.THEME_IMAGES_URL + "/logos/"+id+".png"; | |
| 143 | + console.log(data[4]); | |
| 144 | + //data[5] = d.value; | |
| 142 | 145 | } else if (d._children && !d._children[0]._children) { |
| 143 | 146 | // LAST LVL |
| 144 | 147 | data[0] = "last"; |
| 145 | - data[6] = "datasert url";//??? | |
| 148 | + //data[6] = "datasert url";//??? | |
| 146 | 149 | } else { |
| 147 | 150 | // MIDDLE LVL |
| 148 | 151 | data[0] = "middle"; |
| 149 | - data[5] = "1111";//meta??? | |
| 152 | + //data[5] = "1111";//meta??? | |
| 150 | 153 | } |
| 151 | 154 | //console.log(data); |
| 152 | 155 | //console.log(data.toString()); | ... | ... |
datalets/datasetexplorer-datalet/logos/1.jpg
0 → 100644
20.2 KB
datalets/datasetexplorer-datalet/logos/2.png
0 → 100644
7.8 KB
datalets/datasetexplorer-datalet/logos/3.png
0 → 100644
17.3 KB
datalets/datasetexplorer-datalet/logos/4.png
0 → 100644
9.25 KB
datalets/datasetexplorer-datalet/logos/5.png
0 → 100644
18 KB
datalets/datasetexplorer-datalet/logos/6.png
0 → 100644
17.2 KB
datalets/datasetexplorer-datalet/logos/7.png
0 → 100644
27.9 KB
datalets/datasetexplorer-datalet/logos/8.jpg
0 → 100644
90.8 KB