From 12fe9d17ac70762e15c7e7b3239b2ac8d0a8bceb Mon Sep 17 00:00:00 2001 From: renato Date: Fri, 22 Jan 2016 17:23:39 +0100 Subject: [PATCH] datasetexplorer --- datalets/datasetexplorer-datalet/js/buildtreemap.js | 17 ++++++++++------- datalets/datasetexplorer-datalet/logos/1.jpg | Bin 0 -> 20678 bytes datalets/datasetexplorer-datalet/logos/2.png | Bin 0 -> 7992 bytes datalets/datasetexplorer-datalet/logos/3.png | Bin 0 -> 17688 bytes datalets/datasetexplorer-datalet/logos/4.png | Bin 0 -> 9473 bytes datalets/datasetexplorer-datalet/logos/5.png | Bin 0 -> 18471 bytes datalets/datasetexplorer-datalet/logos/6.png | Bin 0 -> 17645 bytes datalets/datasetexplorer-datalet/logos/7.png | Bin 0 -> 28564 bytes datalets/datasetexplorer-datalet/logos/8.jpg | Bin 0 -> 93013 bytes 9 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 datalets/datasetexplorer-datalet/logos/1.jpg create mode 100644 datalets/datasetexplorer-datalet/logos/2.png create mode 100644 datalets/datasetexplorer-datalet/logos/3.png create mode 100644 datalets/datasetexplorer-datalet/logos/4.png create mode 100644 datalets/datasetexplorer-datalet/logos/5.png create mode 100644 datalets/datasetexplorer-datalet/logos/6.png create mode 100644 datalets/datasetexplorer-datalet/logos/7.png create mode 100644 datalets/datasetexplorer-datalet/logos/8.jpg 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 Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/1.jpg differ diff --git a/datalets/datasetexplorer-datalet/logos/2.png b/datalets/datasetexplorer-datalet/logos/2.png new file mode 100644 index 0000000..01ac143 Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/2.png differ diff --git a/datalets/datasetexplorer-datalet/logos/3.png b/datalets/datasetexplorer-datalet/logos/3.png new file mode 100644 index 0000000..18752b5 Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/3.png differ diff --git a/datalets/datasetexplorer-datalet/logos/4.png b/datalets/datasetexplorer-datalet/logos/4.png new file mode 100644 index 0000000..a78aacf Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/4.png differ diff --git a/datalets/datasetexplorer-datalet/logos/5.png b/datalets/datasetexplorer-datalet/logos/5.png new file mode 100644 index 0000000..a6e2e02 Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/5.png differ diff --git a/datalets/datasetexplorer-datalet/logos/6.png b/datalets/datasetexplorer-datalet/logos/6.png new file mode 100644 index 0000000..202efaf Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/6.png differ diff --git a/datalets/datasetexplorer-datalet/logos/7.png b/datalets/datasetexplorer-datalet/logos/7.png new file mode 100644 index 0000000..8a4c3d9 Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/7.png differ diff --git a/datalets/datasetexplorer-datalet/logos/8.jpg b/datalets/datasetexplorer-datalet/logos/8.jpg new file mode 100644 index 0000000..37d8c7a Binary files /dev/null and b/datalets/datasetexplorer-datalet/logos/8.jpg differ -- libgit2 0.21.4