diff --git a/datalets/datasetexplorer-datalet/js/buildtreemap.js b/datalets/datasetexplorer-datalet/js/buildtreemap.js index c8d6c63..5f27e22 100755 --- a/datalets/datasetexplorer-datalet/js/buildtreemap.js +++ b/datalets/datasetexplorer-datalet/js/buildtreemap.js @@ -131,22 +131,25 @@ function build(root, meta, place_holder, select_listener, width, height) { .call(rect) .attr("onmousemove", function(d) { //var data = ["lvl", "name", "color", "description", "logoUrl", "datasets", "datasetUrl"]; - var data = ["", d.name, d.color, "", "", "0", ""]; - //d.name.split(':')[1]??? + var data = ["", d.name, d.color, "", "", d.value, ""] + var id = d.name.split(':')[1]; if (d.depth == 1) { // FIRST LVL data[0] = "first"; - data[3] = "description";//??? - data[4] = "http://essi-lab.eu/twiki/pub/GIcat/CKANProfilerGuide/logo-ckan.png";//id??? - data[5] = "2222";//meta??? + data[1] = meta[id]['title']; + data[3] = meta[id]['description']; + data[4] = meta[id]['logo_url']; + data[4] = ODE.THEME_IMAGES_URL + "/logos/"+id+".png"; + console.log(data[4]); + //data[5] = d.value; } else if (d._children && !d._children[0]._children) { // LAST LVL data[0] = "last"; - data[6] = "datasert url";//??? + //data[6] = "datasert url";//??? } else { // MIDDLE LVL data[0] = "middle"; - data[5] = "1111";//meta??? + //data[5] = "1111";//meta??? } //console.log(data); //console.log(data.toString()); diff --git a/datalets/datasetexplorer-datalet/logos/1.jpg b/datalets/datasetexplorer-datalet/logos/1.jpg new file mode 100644 index 0000000..63dd938 --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/1.jpg diff --git a/datalets/datasetexplorer-datalet/logos/2.png b/datalets/datasetexplorer-datalet/logos/2.png new file mode 100644 index 0000000..01ac143 --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/2.png diff --git a/datalets/datasetexplorer-datalet/logos/3.png b/datalets/datasetexplorer-datalet/logos/3.png new file mode 100644 index 0000000..18752b5 --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/3.png diff --git a/datalets/datasetexplorer-datalet/logos/4.png b/datalets/datasetexplorer-datalet/logos/4.png new file mode 100644 index 0000000..a78aacf --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/4.png diff --git a/datalets/datasetexplorer-datalet/logos/5.png b/datalets/datasetexplorer-datalet/logos/5.png new file mode 100644 index 0000000..a6e2e02 --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/5.png diff --git a/datalets/datasetexplorer-datalet/logos/6.png b/datalets/datasetexplorer-datalet/logos/6.png new file mode 100644 index 0000000..202efaf --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/6.png diff --git a/datalets/datasetexplorer-datalet/logos/7.png b/datalets/datasetexplorer-datalet/logos/7.png new file mode 100644 index 0000000..8a4c3d9 --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/7.png diff --git a/datalets/datasetexplorer-datalet/logos/8.jpg b/datalets/datasetexplorer-datalet/logos/8.jpg new file mode 100644 index 0000000..37d8c7a --- /dev/null +++ b/datalets/datasetexplorer-datalet/logos/8.jpg