";
- var data = node.data;
- if(data.playcount) {
- html += "play count: " + data.playcount;
- }
- if(data.image) {
- html += "
";
- }
- tip.innerHTML = html;
- }
- },
- //Add the name of the node in the correponding label
- //This method is called once, on label creation.
- onCreateLabel: function(domElement, node){
- domElement.innerHTML = node.name;
- var style = domElement.style;
- style.display = '';
- style.border = '1px solid transparent';
- domElement.onmouseover = function() {
- style.border = '1px solid #9FD4FF';
- };
- domElement.onmouseout = function() {
- style.border = '1px solid transparent';
- };
- }
- });
- tm.loadJSON(json);
- tm.refresh();
- //end
- //add events to radio buttons
- var sq = $jit.id('r-sq'),
- st = $jit.id('r-st'),
- sd = $jit.id('r-sd');
- var util = $jit.util;
- util.addEvent(sq, 'change', function() {
- if(!sq.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Squarified);
- tm.refresh();
- });
- util.addEvent(st, 'change', function() {
- if(!st.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Strip);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- util.addEvent(sd, 'change', function() {
- if(!sd.checked) return;
- util.extend(tm, new $jit.Layouts.TM.SliceAndDice);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- //add event to the back button
- var back = $jit.id('back');
- $jit.util.addEvent(back, 'click', function() {
- tm.out();
- });
-}
diff --git a/app/assets/javascripts/Jit/Examples/Treemap/example2.html b/app/assets/javascripts/Jit/Examples/Treemap/example2.html
deleted file mode 100644
index 3832c819..00000000
--- a/app/assets/javascripts/Jit/Examples/Treemap/example2.html
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
Treemap - TreeMap with on-demand nodes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-TreeMap with on-demand nodes
-
-
- This example shows how you can use the request controller method to create a TreeMap with on demand nodes
- This example makes use of native Canvas text and shadows, but can be easily adapted to use HTML like the other examples.
- There should be only one level shown at a time.
- Clicking on a band should show a new TreeMap with its most listened albums.
-
-
-
-
-
-
Go to Parent
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/assets/javascripts/Jit/Examples/Treemap/example2.js b/app/assets/javascripts/Jit/Examples/Treemap/example2.js
deleted file mode 100644
index c4792bf5..00000000
--- a/app/assets/javascripts/Jit/Examples/Treemap/example2.js
+++ /dev/null
@@ -1,165 +0,0 @@
-var labelType, useGradients, nativeTextSupport, animate;
-
-(function() {
- var ua = navigator.userAgent,
- iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
- typeOfCanvas = typeof HTMLCanvasElement,
- nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
- textSupport = nativeCanvasSupport
- && (typeof document.createElement('canvas').getContext('2d').fillText == 'function');
- //I'm setting this based on the fact that ExCanvas provides text support for IE
- //and that as of today iPhone/iPad current text support is lame
- labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML';
- nativeTextSupport = labelType == 'Native';
- useGradients = nativeCanvasSupport;
- animate = !(iStuff || !nativeCanvasSupport);
-})();
-
-var Log = {
- elem: false,
- write: function(text){
- if (!this.elem)
- this.elem = document.getElementById('log');
- this.elem.innerHTML = text;
- this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px';
- }
-};
-
-
-function init(){
- //init data
- var json = "{\"children\": [{\"children\": [{\"children\": [], \"data\": {\"playcount\": \"276\", \"artist\": \"A Perfect Circle\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/11403219.jpg\", \"$area\": 276}, \"id\": \"album-Thirteenth Step\", \"name\": \"Thirteenth Step\"}, {\"children\": [], \"data\": {\"playcount\": \"271\", \"artist\": \"A Perfect Circle\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/11393921.jpg\", \"$area\": 271}, \"id\": \"album-Mer De Noms\", \"name\": \"Mer De Noms\"}], \"data\": {\"playcount\": 547, \"$area\": 547}, \"id\": \"artist_A Perfect Circle\", \"name\": \"A Perfect Circle\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"209\", \"artist\": \"Mad Season\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32349839.jpg\", \"$area\": 209}, \"id\": \"album-Above\", \"name\": \"Above\"}], \"data\": {\"playcount\": 209, \"$area\": 209}, \"id\": \"artist_Mad Season\", \"name\": \"Mad Season\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"260\", \"artist\": \"Stone Temple Pilots\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/38753425.jpg\", \"$area\": 260}, \"id\": \"album-Tiny Music... Songs From the Vatican Gift Shop\", \"name\": \"Tiny Music... Songs From the Vatican Gift Shop\"}, {\"children\": [], \"data\": {\"playcount\": \"254\", \"artist\": \"Stone Temple Pilots\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B000002IU3.01.LZZZZZZZ.jpg\", \"$area\": 254}, \"id\": \"album-Core\", \"name\": \"Core\"}], \"data\": {\"playcount\": 514, \"$area\": 514}, \"id\": \"artist_Stone Temple Pilots\", \"name\": \"Stone Temple Pilots\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"181\", \"artist\": \"Bush\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8673371.jpg\", \"$area\": 181}, \"id\": \"album-The Science of Things\", \"name\": \"The Science of Things\"}], \"data\": {\"playcount\": 181, \"$area\": 181}, \"id\": \"artist_Bush\", \"name\": \"Bush\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"229\", \"artist\": \"Foo Fighters\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32579429.jpg\", \"$area\": 229}, \"id\": \"album-Echoes, Silence, Patience & Grace\", \"name\": \"Echoes, Silence, Patience & Grace\"}, {\"children\": [], \"data\": {\"playcount\": \"185\", \"artist\": \"Foo Fighters\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0009HLDFU.01.MZZZZZZZ.jpg\", \"$area\": 185}, \"id\": \"album-In Your Honor (disc 2)\", \"name\": \"In Your Honor (disc 2)\"}], \"data\": {\"playcount\": 414, \"$area\": 414}, \"id\": \"artist_Foo Fighters\", \"name\": \"Foo Fighters\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"398\", \"artist\": \"Luis Alberto Spinetta\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B00005LNP5.01._SCMZZZZZZZ_.jpg\", \"$area\": 398}, \"id\": \"album-Elija Y Gane\", \"name\": \"Elija Y Gane\"}, {\"children\": [], \"data\": {\"playcount\": \"203\", \"artist\": \"Luis Alberto Spinetta\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0000B193V.01._SCMZZZZZZZ_.jpg\", \"$area\": 203}, \"id\": \"album-Para los Arboles\", \"name\": \"Para los Arboles\"}], \"data\": {\"playcount\": 601, \"$area\": 601}, \"id\": \"artist_Luis Alberto Spinetta\", \"name\": \"Luis Alberto Spinetta\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"224\", \"artist\": \"Alice in Chains\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/26497553.jpg\", \"$area\": 224}, \"id\": \"album-Music Bank\", \"name\": \"Music Bank\"}, {\"children\": [], \"data\": {\"playcount\": \"217\", \"artist\": \"Alice in Chains\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg\", \"$area\": 217}, \"id\": \"album-Music Bank (disc 1)\", \"name\": \"Music Bank (disc 1)\"}, {\"children\": [], \"data\": {\"playcount\": \"215\", \"artist\": \"Alice in Chains\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg\", \"$area\": 215}, \"id\": \"album-Music Bank (disc 2)\", \"name\": \"Music Bank (disc 2)\"}, {\"children\": [], \"data\": {\"playcount\": \"181\", \"artist\": \"Alice in Chains\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg\", \"$area\": 181}, \"id\": \"album-Music Bank (disc 3)\", \"name\": \"Music Bank (disc 3)\"}], \"data\": {\"playcount\": 837, \"$area\": 837}, \"id\": \"artist_Alice in Chains\", \"name\": \"Alice in Chains\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"627\", \"artist\": \"Tool\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8480501.jpg\", \"$area\": 627}, \"id\": \"album-10,000 Days\", \"name\": \"10,000 Days\"}], \"data\": {\"playcount\": 627, \"$area\": 627}, \"id\": \"artist_Tool\", \"name\": \"Tool\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"261\", \"artist\": \"Chris Cornell\", \"image\": \"http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png\", \"$area\": 261}, \"id\": \"album-2006-09-07: O-Bar, Stockholm, Sweden\", \"name\": \"2006-09-07: O-Bar, Stockholm, Sweden\"}, {\"children\": [], \"data\": {\"playcount\": \"211\", \"artist\": \"Chris Cornell\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/25402479.jpg\", \"$area\": 211}, \"id\": \"album-Lost and Found\", \"name\": \"Lost and Found\"}], \"data\": {\"playcount\": 472, \"$area\": 472}, \"id\": \"artist_Chris Cornell\", \"name\": \"Chris Cornell\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"197\", \"artist\": \"Disturbed\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8634627.jpg\", \"$area\": 197}, \"id\": \"album-The Sickness\", \"name\": \"The Sickness\"}], \"data\": {\"playcount\": 197, \"$area\": 197}, \"id\": \"artist_Disturbed\", \"name\": \"Disturbed\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"493\", \"artist\": \"Erykah Badu\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8591345.jpg\", \"$area\": 493}, \"id\": \"album-Mama's Gun\", \"name\": \"Mama's Gun\"}], \"data\": {\"playcount\": 493, \"$area\": 493}, \"id\": \"artist_Erykah Badu\", \"name\": \"Erykah Badu\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"249\", \"artist\": \"Audioslave\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32070871.jpg\", \"$area\": 249}, \"id\": \"album-Audioslave\", \"name\": \"Audioslave\"}], \"data\": {\"playcount\": 249, \"$area\": 249}, \"id\": \"artist_Audioslave\", \"name\": \"Audioslave\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"359\", \"artist\": \"Soda Stereo\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/15858421.jpg\", \"$area\": 359}, \"id\": \"album-Comfort y M\u00fasica Para Volar\", \"name\": \"Comfort y M\u00fasica Para Volar\"}], \"data\": {\"playcount\": 359, \"$area\": 359}, \"id\": \"artist_Soda Stereo\", \"name\": \"Soda Stereo\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"302\", \"artist\": \"Sinch\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8776205.jpg\", \"$area\": 302}, \"id\": \"album-Clearing the Channel\", \"name\": \"Clearing the Channel\"}], \"data\": {\"playcount\": 302, \"$area\": 302}, \"id\": \"artist_Sinch\", \"name\": \"Sinch\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"177\", \"artist\": \"Dave Matthews Band\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32457599.jpg\", \"$area\": 177}, \"id\": \"album-Crash\", \"name\": \"Crash\"}], \"data\": {\"playcount\": 177, \"$area\": 177}, \"id\": \"artist_Dave Matthews Band\", \"name\": \"Dave Matthews Band\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"207\", \"artist\": \"Pearl Jam\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/30352203.jpg\", \"$area\": 207}, \"id\": \"album-Vs.\", \"name\": \"Vs.\"}], \"data\": {\"playcount\": 207, \"$area\": 207}, \"id\": \"artist_Pearl Jam\", \"name\": \"Pearl Jam\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"486\", \"artist\": \"Kr\u00f8m\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/26053425.jpg\", \"$area\": 486}, \"id\": \"album-It All Makes Sense Now\", \"name\": \"It All Makes Sense Now\"}, {\"children\": [], \"data\": {\"playcount\": \"251\", \"artist\": \"Agua de Annique\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/9658733.jpg\", \"$area\": 251}, \"id\": \"album-Air\", \"name\": \"Air\"}], \"data\": {\"playcount\": 737, \"$area\": 737}, \"id\": \"artist_Kr\u00f8m\", \"name\": \"Kr\u00f8m\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"345\", \"artist\": \"Temple of the Dog\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8605651.jpg\", \"$area\": 345}, \"id\": \"album-Temple Of The Dog\", \"name\": \"Temple Of The Dog\"}], \"data\": {\"playcount\": 345, \"$area\": 345}, \"id\": \"artist_Temple of the Dog\", \"name\": \"Temple of the Dog\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"318\", \"artist\": \"Nine Inch Nails\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/29274729.jpg\", \"$area\": 318}, \"id\": \"album-And All That Could Have Been (Still)\", \"name\": \"And All That Could Have Been (Still)\"}], \"data\": {\"playcount\": 318, \"$area\": 318}, \"id\": \"artist_Nine Inch Nails\", \"name\": \"Nine Inch Nails\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"256\", \"artist\": \"Tryo\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32595059.jpg\", \"$area\": 256}, \"id\": \"album-Mamagubida\", \"name\": \"Mamagubida\"}, {\"children\": [], \"data\": {\"playcount\": \"220\", \"artist\": \"Tryo\", \"image\": \"http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png\", \"$area\": 220}, \"id\": \"album-Reggae \u00e0 Coup de Cirque\", \"name\": \"Reggae \u00e0 Coup de Cirque\"}, {\"children\": [], \"data\": {\"playcount\": \"181\", \"artist\": \"Tryo\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/16799743.jpg\", \"$area\": 181}, \"id\": \"album-Grain de sable\", \"name\": \"Grain de sable\"}], \"data\": {\"playcount\": 657, \"$area\": 657}, \"id\": \"artist_Tryo\", \"name\": \"Tryo\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"258\", \"artist\": \"Sublime\", \"image\": \"http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png\", \"$area\": 258}, \"id\": \"album-Best Of\", \"name\": \"Best Of\"}, {\"children\": [], \"data\": {\"playcount\": \"176\", \"artist\": \"Sublime\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/5264426.jpg\", \"$area\": 176}, \"id\": \"album-Robbin' The Hood\", \"name\": \"Robbin' The Hood\"}], \"data\": {\"playcount\": 434, \"$area\": 434}, \"id\": \"artist_Sublime\", \"name\": \"Sublime\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"418\", \"artist\": \"Red Hot Chili Peppers\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8590493.jpg\", \"$area\": 418}, \"id\": \"album-One Hot Minute\", \"name\": \"One Hot Minute\"}], \"data\": {\"playcount\": 418, \"$area\": 418}, \"id\": \"artist_Red Hot Chili Peppers\", \"name\": \"Red Hot Chili Peppers\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"275\", \"artist\": \"Guns N' Roses\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/17597653.jpg\", \"$area\": 275}, \"id\": \"album-Chinese Democracy\", \"name\": \"Chinese Democracy\"}, {\"children\": [], \"data\": {\"playcount\": \"203\", \"artist\": \"Guns N' Roses\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/15231979.jpg\", \"$area\": 203}, \"id\": \"album-Use Your Illusion II\", \"name\": \"Use Your Illusion II\"}], \"data\": {\"playcount\": 478, \"$area\": 478}, \"id\": \"artist_Guns N' Roses\", \"name\": \"Guns N' Roses\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"208\", \"artist\": \"Wax Tailor\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B0007LCNNE.01.MZZZZZZZ.jpg\", \"$area\": 208}, \"id\": \"album-Tales of the Forgotten Melodies\", \"name\": \"Tales of the Forgotten Melodies\"}], \"data\": {\"playcount\": 208, \"$area\": 208}, \"id\": \"artist_Wax Tailor\", \"name\": \"Wax Tailor\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"208\", \"artist\": \"Radiohead\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/7862623.png\", \"$area\": 208}, \"id\": \"album-In Rainbows\", \"name\": \"In Rainbows\"}], \"data\": {\"playcount\": 208, \"$area\": 208}, \"id\": \"artist_Radiohead\", \"name\": \"Radiohead\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"317\", \"artist\": \"Soundgarden\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8600371.jpg\", \"$area\": 317}, \"id\": \"album-Down On The Upside\", \"name\": \"Down On The Upside\"}, {\"children\": [], \"data\": {\"playcount\": \"290\", \"artist\": \"Soundgarden\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8590515.jpg\", \"$area\": 290}, \"id\": \"album-Superunknown\", \"name\": \"Superunknown\"}], \"data\": {\"playcount\": 607, \"$area\": 607}, \"id\": \"artist_Soundgarden\", \"name\": \"Soundgarden\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"247\", \"artist\": \"Blind Melon\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/15113951.jpg\", \"$area\": 247}, \"id\": \"album-Nico\", \"name\": \"Nico\"}, {\"children\": [], \"data\": {\"playcount\": \"218\", \"artist\": \"Blind Melon\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/45729417.jpg\", \"$area\": 218}, \"id\": \"album-Soup\", \"name\": \"Soup\"}, {\"children\": [], \"data\": {\"playcount\": \"197\", \"artist\": \"Blind Melon\", \"image\": \"http:\/\/images.amazon.com\/images\/P\/B00005V5PW.01.MZZZZZZZ.jpg\", \"$area\": 197}, \"id\": \"album-Classic Masters\", \"name\": \"Classic Masters\"}, {\"children\": [], \"data\": {\"playcount\": \"194\", \"artist\": \"Blind Melon\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/15157989.jpg\", \"$area\": 194}, \"id\": \"album-Blind Melon\", \"name\": \"Blind Melon\"}], \"data\": {\"playcount\": 856, \"$area\": 856}, \"id\": \"artist_Blind Melon\", \"name\": \"Blind Melon\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"537\", \"artist\": \"Incubus\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/17594883.jpg\", \"$area\": 537}, \"id\": \"album-Make Yourself\", \"name\": \"Make Yourself\"}, {\"children\": [], \"data\": {\"playcount\": \"258\", \"artist\": \"Incubus\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/31550385.jpg\", \"$area\": 258}, \"id\": \"album-Light Grenades\", \"name\": \"Light Grenades\"}, {\"children\": [], \"data\": {\"playcount\": \"181\", \"artist\": \"Incubus\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/32309285.jpg\", \"$area\": 181}, \"id\": \"album-Morning View\", \"name\": \"Morning View\"}], \"data\": {\"playcount\": 976, \"$area\": 976}, \"id\": \"artist_Incubus\", \"name\": \"Incubus\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"198\", \"artist\": \"Jack Johnson\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/8599099.jpg\", \"$area\": 198}, \"id\": \"album-On And On\", \"name\": \"On And On\"}, {\"children\": [], \"data\": {\"playcount\": \"186\", \"artist\": \"Jack Johnson\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/30082075.jpg\", \"$area\": 186}, \"id\": \"album-Brushfire Fairytales\", \"name\": \"Brushfire Fairytales\"}], \"data\": {\"playcount\": 384, \"$area\": 384}, \"id\": \"artist_Jack Johnson\", \"name\": \"Jack Johnson\"}, {\"children\": [{\"children\": [], \"data\": {\"playcount\": \"349\", \"artist\": \"Mother Love Bone\", \"image\": \"http:\/\/userserve-ak.last.fm\/serve\/300x300\/21881921.jpg\", \"$area\": 349}, \"id\": \"album-Mother Love Bone\", \"name\": \"Mother Love Bone\"}], \"data\": {\"playcount\": 349, \"$area\": 349}, \"id\": \"artist_Mother Love Bone\", \"name\": \"Mother Love Bone\"}], \"data\": {}, \"id\": \"root\", \"name\": \"Top Albums\"}";
- //end
- //init TreeMap
- var tm = new $jit.TM.Squarified({
- //where to inject the visualization
- injectInto: 'infovis',
- //show only one tree level
- levelsToShow: 1,
- //parent box title heights
- titleHeight: 0,
- //enable animations
- animate: animate,
- //box offsets
- offset: 1,
- //use canvas text
- Label: {
- type: labelType,
- size: 9,
- family: 'Tahoma, Verdana, Arial'
- },
- //enable specific canvas styles
- //when rendering nodes
- Node: {
- CanvasStyles: {
- shadowBlur: 0,
- shadowColor: '#000'
- }
- },
- //Attach left and right click events
- Events: {
- enable: true,
- onClick: function(node) {
- if(node) tm.enter(node);
- },
- onRightClick: function() {
- tm.out();
- },
- //change node styles and canvas styles
- //when hovering a node
- onMouseEnter: function(node, eventInfo) {
- if(node) {
- //add node selected styles and replot node
- node.setCanvasStyle('shadowBlur', 7);
- node.setData('color', '#888');
- tm.fx.plotNode(node, tm.canvas);
- tm.labels.plotLabel(tm.canvas, node);
- }
- },
- onMouseLeave: function(node) {
- if(node) {
- node.removeData('color');
- node.removeCanvasStyle('shadowBlur');
- tm.plot();
- }
- }
- },
- //duration of the animations
- duration: 1000,
- //Enable tips
- Tips: {
- enable: true,
- type: 'Native',
- //add positioning offsets
- offsetX: 20,
- offsetY: 20,
- //implement the onShow method to
- //add content to the tooltip when a node
- //is hovered
- onShow: function(tip, node, isLeaf, domElement) {
- var html = "
" + node.name
- + "
";
- var data = node.data;
- if(data.artist) {
- html += "Artist: " + data.artist + "
";
- }
- if(data.playcount) {
- html += "Play count: " + data.playcount;
- }
- if(data.image) {
- html += "
";
- }
- tip.innerHTML = html;
- }
- },
- //Implement this method for retrieving a requested
- //subtree that has as root a node with id = nodeId,
- //and level as depth. This method could also make a server-side
- //call for the requested subtree. When completed, the onComplete
- //callback method should be called.
- request: function(nodeId, level, onComplete){
- var tree = eval('(' + json + ')');
- var subtree = $jit.json.getSubtree(tree, nodeId);
- $jit.json.prune(subtree, 1);
- onComplete.onComplete(nodeId, subtree);
- },
- //Add the name of the node in the corresponding label
- //This method is called once, on label creation and only for DOM labels.
- onCreateLabel: function(domElement, node){
- domElement.innerHTML = node.name;
- }
- });
-
- var pjson = eval('(' + json + ')');
- $jit.json.prune(pjson, 1);
-
- tm.loadJSON(pjson);
- tm.refresh();
- //end
- var sq = $jit.id('r-sq'),
- st = $jit.id('r-st'),
- sd = $jit.id('r-sd');
- var util = $jit.util;
- util.addEvent(sq, 'change', function() {
- if(!sq.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Squarified);
- tm.refresh();
- });
- util.addEvent(st, 'change', function() {
- if(!st.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Strip);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- util.addEvent(sd, 'change', function() {
- if(!sd.checked) return;
- util.extend(tm, new $jit.Layouts.TM.SliceAndDice);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- //add event to the back button
- var back = $jit.id('back');
- $jit.util.addEvent(back, 'click', function() {
- tm.out();
- });
-}
diff --git a/app/assets/javascripts/Jit/Examples/Treemap/example3.html b/app/assets/javascripts/Jit/Examples/Treemap/example3.html
deleted file mode 100644
index 7c7ecdad..00000000
--- a/app/assets/javascripts/Jit/Examples/Treemap/example3.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
Treemap - Cushion TreeMaps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Cushion TreeMaps
-
-
- In this example a static JSON tree is loaded into a Cushion Treemap.
- Left click to set a node as root for the visualization.
- Right click to set the parent node as root for the visualization.
- You can choose a different tiling algorithm below:
-
-
-
-
-
-
-
Go to Parent
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/assets/javascripts/Jit/Examples/Treemap/example3.js b/app/assets/javascripts/Jit/Examples/Treemap/example3.js
deleted file mode 100644
index f5d02e59..00000000
--- a/app/assets/javascripts/Jit/Examples/Treemap/example3.js
+++ /dev/null
@@ -1,1025 +0,0 @@
-var labelType, useGradients, nativeTextSupport, animate;
-
-(function() {
- var ua = navigator.userAgent,
- iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
- typeOfCanvas = typeof HTMLCanvasElement,
- nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
- textSupport = nativeCanvasSupport
- && (typeof document.createElement('canvas').getContext('2d').fillText == 'function');
- //I'm setting this based on the fact that ExCanvas provides text support for IE
- //and that as of today iPhone/iPad current text support is lame
- labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML';
- nativeTextSupport = labelType == 'Native';
- useGradients = nativeCanvasSupport;
- animate = !(iStuff || !nativeCanvasSupport);
-})();
-
-var Log = {
- elem: false,
- write: function(text){
- if (!this.elem)
- this.elem = document.getElementById('log');
- this.elem.innerHTML = text;
- this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px';
- }
-};
-
-
-function init(){
- //init data
- var json = {
- "children": [
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "A Perfect Circle",
- "playcount": "276",
- "$color": "#8E7032",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/11403219.jpg",
- "$area": 276
- },
- "id": "album-Thirteenth Step",
- "name": "Thirteenth Step"
- },
- {
- "children": [],
- "data": {
- "artist": "A Perfect Circle",
- "playcount": "271",
- "$color": "#906E32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/11393921.jpg",
- "$area": 271
- },
- "id": "album-Mer De Noms",
- "name": "Mer De Noms"
- }
- ],
- "data": {
- "playcount": 547,
- "$area": 547
- },
- "id": "artist_A Perfect Circle",
- "name": "A Perfect Circle"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Mad Season",
- "playcount": "209",
- "$color": "#AA5532",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32349839.jpg",
- "$area": 209
- },
- "id": "album-Above",
- "name": "Above"
- }
- ],
- "data": {
- "playcount": 209,
- "$area": 209
- },
- "id": "artist_Mad Season",
- "name": "Mad Season"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Stone Temple Pilots",
- "playcount": "260",
- "$color": "#956932",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/38753425.jpg",
- "$area": 260
- },
- "id": "album-Tiny Music... Songs From the Vatican Gift Shop",
- "name": "Tiny Music... Songs From the Vatican Gift Shop"
- },
- {
- "children": [],
- "data": {
- "artist": "Stone Temple Pilots",
- "playcount": "254",
- "$color": "#976732",
- "image": "http:\/\/images.amazon.com\/images\/P\/B000002IU3.01.LZZZZZZZ.jpg",
- "$area": 254
- },
- "id": "album-Core",
- "name": "Core"
- }
- ],
- "data": {
- "playcount": 514,
- "$area": 514
- },
- "id": "artist_Stone Temple Pilots",
- "name": "Stone Temple Pilots"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Bush",
- "playcount": "181",
- "$color": "#B54932",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8673371.jpg",
- "$area": 181
- },
- "id": "album-The Science of Things",
- "name": "The Science of Things"
- }
- ],
- "data": {
- "playcount": 181,
- "$area": 181
- },
- "id": "artist_Bush",
- "name": "Bush"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Foo Fighters",
- "playcount": "229",
- "$color": "#A15D32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32579429.jpg",
- "$area": 229
- },
- "id": "album-Echoes, Silence, Patience & Grace",
- "name": "Echoes, Silence, Patience & Grace"
- },
- {
- "children": [],
- "data": {
- "artist": "Foo Fighters",
- "playcount": "185",
- "$color": "#B34B32",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0009HLDFU.01.MZZZZZZZ.jpg",
- "$area": 185
- },
- "id": "album-In Your Honor (disc 2)",
- "name": "In Your Honor (disc 2)"
- }
- ],
- "data": {
- "playcount": 414,
- "$area": 414
- },
- "id": "artist_Foo Fighters",
- "name": "Foo Fighters"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Luis Alberto Spinetta",
- "playcount": "398",
- "$color": "#5DA132",
- "image": "http:\/\/images.amazon.com\/images\/P\/B00005LNP5.01._SCMZZZZZZZ_.jpg",
- "$area": 398
- },
- "id": "album-Elija Y Gane",
- "name": "Elija Y Gane"
- },
- {
- "children": [],
- "data": {
- "artist": "Luis Alberto Spinetta",
- "playcount": "203",
- "$color": "#AC5232",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0000B193V.01._SCMZZZZZZZ_.jpg",
- "$area": 203
- },
- "id": "album-Para los Arboles",
- "name": "Para los Arboles"
- }
- ],
- "data": {
- "playcount": 601,
- "$area": 601
- },
- "id": "artist_Luis Alberto Spinetta",
- "name": "Luis Alberto Spinetta"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Alice in Chains",
- "playcount": "224",
- "$color": "#A35B32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/26497553.jpg",
- "$area": 224
- },
- "id": "album-Music Bank",
- "name": "Music Bank"
- },
- {
- "children": [],
- "data": {
- "artist": "Alice in Chains",
- "playcount": "217",
- "$color": "#A65832",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg",
- "$area": 217
- },
- "id": "album-Music Bank (disc 1)",
- "name": "Music Bank (disc 1)"
- },
- {
- "children": [],
- "data": {
- "artist": "Alice in Chains",
- "playcount": "215",
- "$color": "#A75732",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg",
- "$area": 215
- },
- "id": "album-Music Bank (disc 2)",
- "name": "Music Bank (disc 2)"
- },
- {
- "children": [],
- "data": {
- "artist": "Alice in Chains",
- "playcount": "181",
- "$color": "#B54932",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0000296JW.01.MZZZZZZZ.jpg",
- "$area": 181
- },
- "id": "album-Music Bank (disc 3)",
- "name": "Music Bank (disc 3)"
- }
- ],
- "data": {
- "playcount": 837,
- "$area": 837
- },
- "id": "artist_Alice in Chains",
- "name": "Alice in Chains"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Tool",
- "playcount": "627",
- "$color": "#00FF32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8480501.jpg",
- "$area": 627
- },
- "id": "album-10,000 Days",
- "name": "10,000 Days"
- }
- ],
- "data": {
- "playcount": 627,
- "$area": 627
- },
- "id": "artist_Tool",
- "name": "Tool"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Chris Cornell",
- "playcount": "261",
- "$color": "#946A32",
- "image": "http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png",
- "$area": 261
- },
- "id": "album-2006-09-07: O-Bar, Stockholm, Sweden",
- "name": "2006-09-07: O-Bar, Stockholm, Sweden"
- },
- {
- "children": [],
- "data": {
- "artist": "Chris Cornell",
- "playcount": "211",
- "$color": "#A95532",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/25402479.jpg",
- "$area": 211
- },
- "id": "album-Lost and Found",
- "name": "Lost and Found"
- }
- ],
- "data": {
- "playcount": 472,
- "$area": 472
- },
- "id": "artist_Chris Cornell",
- "name": "Chris Cornell"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Disturbed",
- "playcount": "197",
- "$color": "#AE5032",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8634627.jpg",
- "$area": 197
- },
- "id": "album-The Sickness",
- "name": "The Sickness"
- }
- ],
- "data": {
- "playcount": 197,
- "$area": 197
- },
- "id": "artist_Disturbed",
- "name": "Disturbed"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Erykah Badu",
- "playcount": "493",
- "$color": "#36C832",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8591345.jpg",
- "$area": 493
- },
- "id": "album-Mama's Gun",
- "name": "Mama's Gun"
- }
- ],
- "data": {
- "playcount": 493,
- "$area": 493
- },
- "id": "artist_Erykah Badu",
- "name": "Erykah Badu"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Audioslave",
- "playcount": "249",
- "$color": "#996532",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32070871.jpg",
- "$area": 249
- },
- "id": "album-Audioslave",
- "name": "Audioslave"
- }
- ],
- "data": {
- "playcount": 249,
- "$area": 249
- },
- "id": "artist_Audioslave",
- "name": "Audioslave"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Soda Stereo",
- "playcount": "359",
- "$color": "#6C9232",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/15858421.jpg",
- "$area": 359
- },
- "id": "album-Comfort y M\u00fasica Para Volar",
- "name": "Comfort y M\u00fasica Para Volar"
- }
- ],
- "data": {
- "playcount": 359,
- "$area": 359
- },
- "id": "artist_Soda Stereo",
- "name": "Soda Stereo"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Sinch",
- "playcount": "302",
- "$color": "#847A32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8776205.jpg",
- "$area": 302
- },
- "id": "album-Clearing the Channel",
- "name": "Clearing the Channel"
- }
- ],
- "data": {
- "playcount": 302,
- "$area": 302
- },
- "id": "artist_Sinch",
- "name": "Sinch"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Dave Matthews Band",
- "playcount": "177",
- "$color": "#B74732",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32457599.jpg",
- "$area": 177
- },
- "id": "album-Crash",
- "name": "Crash"
- }
- ],
- "data": {
- "playcount": 177,
- "$area": 177
- },
- "id": "artist_Dave Matthews Band",
- "name": "Dave Matthews Band"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Pearl Jam",
- "playcount": "207",
- "$color": "#AA5432",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/30352203.jpg",
- "$area": 207
- },
- "id": "album-Vs.",
- "name": "Vs."
- }
- ],
- "data": {
- "playcount": 207,
- "$area": 207
- },
- "id": "artist_Pearl Jam",
- "name": "Pearl Jam"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Kr\u00f8m",
- "playcount": "486",
- "$color": "#39C532",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/26053425.jpg",
- "$area": 486
- },
- "id": "album-It All Makes Sense Now",
- "name": "It All Makes Sense Now"
- },
- {
- "children": [],
- "data": {
- "artist": "Agua de Annique",
- "playcount": "251",
- "$color": "#986632",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/9658733.jpg",
- "$area": 251
- },
- "id": "album-Air",
- "name": "Air"
- }
- ],
- "data": {
- "playcount": 737,
- "$area": 737
- },
- "id": "artist_Kr\u00f8m",
- "name": "Kr\u00f8m"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Temple of the Dog",
- "playcount": "345",
- "$color": "#728C32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8605651.jpg",
- "$area": 345
- },
- "id": "album-Temple Of The Dog",
- "name": "Temple Of The Dog"
- }
- ],
- "data": {
- "playcount": 345,
- "$area": 345
- },
- "id": "artist_Temple of the Dog",
- "name": "Temple of the Dog"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Nine Inch Nails",
- "playcount": "318",
- "$color": "#7D8132",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/29274729.jpg",
- "$area": 318
- },
- "id": "album-And All That Could Have Been (Still)",
- "name": "And All That Could Have Been (Still)"
- }
- ],
- "data": {
- "playcount": 318,
- "$area": 318
- },
- "id": "artist_Nine Inch Nails",
- "name": "Nine Inch Nails"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Tryo",
- "playcount": "256",
- "$color": "#966832",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32595059.jpg",
- "$area": 256
- },
- "id": "album-Mamagubida",
- "name": "Mamagubida"
- },
- {
- "children": [],
- "data": {
- "artist": "Tryo",
- "playcount": "220",
- "$color": "#A55932",
- "image": "http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png",
- "$area": 220
- },
- "id": "album-Reggae \u00e0 Coup de Cirque",
- "name": "Reggae \u00e0 Coup de Cirque"
- },
- {
- "children": [],
- "data": {
- "artist": "Tryo",
- "playcount": "181",
- "$color": "#B54932",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/16799743.jpg",
- "$area": 181
- },
- "id": "album-Grain de sable",
- "name": "Grain de sable"
- }
- ],
- "data": {
- "playcount": 657,
- "$area": 657
- },
- "id": "artist_Tryo",
- "name": "Tryo"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Sublime",
- "playcount": "258",
- "$color": "#966832",
- "image": "http:\/\/cdn.last.fm\/flatness\/catalogue\/noimage\/2\/default_album_medium.png",
- "$area": 258
- },
- "id": "album-Best Of",
- "name": "Best Of"
- },
- {
- "children": [],
- "data": {
- "artist": "Sublime",
- "playcount": "176",
- "$color": "#B74732",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/5264426.jpg",
- "$area": 176
- },
- "id": "album-Robbin' The Hood",
- "name": "Robbin' The Hood"
- }
- ],
- "data": {
- "playcount": 434,
- "$area": 434
- },
- "id": "artist_Sublime",
- "name": "Sublime"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Red Hot Chili Peppers",
- "playcount": "418",
- "$color": "#55AA32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8590493.jpg",
- "$area": 418
- },
- "id": "album-One Hot Minute",
- "name": "One Hot Minute"
- }
- ],
- "data": {
- "playcount": 418,
- "$area": 418
- },
- "id": "artist_Red Hot Chili Peppers",
- "name": "Red Hot Chili Peppers"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Guns N' Roses",
- "playcount": "275",
- "$color": "#8F6F32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/17597653.jpg",
- "$area": 275
- },
- "id": "album-Chinese Democracy",
- "name": "Chinese Democracy"
- },
- {
- "children": [],
- "data": {
- "artist": "Guns N' Roses",
- "playcount": "203",
- "$color": "#AC5232",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/15231979.jpg",
- "$area": 203
- },
- "id": "album-Use Your Illusion II",
- "name": "Use Your Illusion II"
- }
- ],
- "data": {
- "playcount": 478,
- "$area": 478
- },
- "id": "artist_Guns N' Roses",
- "name": "Guns N' Roses"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Wax Tailor",
- "playcount": "208",
- "$color": "#AA5432",
- "image": "http:\/\/images.amazon.com\/images\/P\/B0007LCNNE.01.MZZZZZZZ.jpg",
- "$area": 208
- },
- "id": "album-Tales of the Forgotten Melodies",
- "name": "Tales of the Forgotten Melodies"
- }
- ],
- "data": {
- "playcount": 208,
- "$area": 208
- },
- "id": "artist_Wax Tailor",
- "name": "Wax Tailor"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Radiohead",
- "playcount": "208",
- "$color": "#AA5432",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/7862623.png",
- "$area": 208
- },
- "id": "album-In Rainbows",
- "name": "In Rainbows"
- }
- ],
- "data": {
- "playcount": 208,
- "$area": 208
- },
- "id": "artist_Radiohead",
- "name": "Radiohead"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Soundgarden",
- "playcount": "317",
- "$color": "#7E8032",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8600371.jpg",
- "$area": 317
- },
- "id": "album-Down On The Upside",
- "name": "Down On The Upside"
- },
- {
- "children": [],
- "data": {
- "artist": "Soundgarden",
- "playcount": "290",
- "$color": "#897532",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8590515.jpg",
- "$area": 290
- },
- "id": "album-Superunknown",
- "name": "Superunknown"
- }
- ],
- "data": {
- "playcount": 607,
- "$area": 607
- },
- "id": "artist_Soundgarden",
- "name": "Soundgarden"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Blind Melon",
- "playcount": "247",
- "$color": "#9A6432",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/15113951.jpg",
- "$area": 247
- },
- "id": "album-Nico",
- "name": "Nico"
- },
- {
- "children": [],
- "data": {
- "artist": "Blind Melon",
- "playcount": "218",
- "$color": "#A65832",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/45729417.jpg",
- "$area": 218
- },
- "id": "album-Soup",
- "name": "Soup"
- },
- {
- "children": [],
- "data": {
- "artist": "Blind Melon",
- "playcount": "197",
- "$color": "#AE5032",
- "image": "http:\/\/images.amazon.com\/images\/P\/B00005V5PW.01.MZZZZZZZ.jpg",
- "$area": 197
- },
- "id": "album-Classic Masters",
- "name": "Classic Masters"
- },
- {
- "children": [],
- "data": {
- "artist": "Blind Melon",
- "playcount": "194",
- "$color": "#B04E32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/15157989.jpg",
- "$area": 194
- },
- "id": "album-Blind Melon",
- "name": "Blind Melon"
- }
- ],
- "data": {
- "playcount": 856,
- "$area": 856
- },
- "id": "artist_Blind Melon",
- "name": "Blind Melon"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Incubus",
- "playcount": "537",
- "$color": "#24DA32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/17594883.jpg",
- "$area": 537
- },
- "id": "album-Make Yourself",
- "name": "Make Yourself"
- },
- {
- "children": [],
- "data": {
- "artist": "Incubus",
- "playcount": "258",
- "$color": "#966832",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/31550385.jpg",
- "$area": 258
- },
- "id": "album-Light Grenades",
- "name": "Light Grenades"
- },
- {
- "children": [],
- "data": {
- "artist": "Incubus",
- "playcount": "181",
- "$color": "#B54932",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/32309285.jpg",
- "$area": 181
- },
- "id": "album-Morning View",
- "name": "Morning View"
- }
- ],
- "data": {
- "playcount": 976,
- "$area": 976
- },
- "id": "artist_Incubus",
- "name": "Incubus"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Jack Johnson",
- "playcount": "198",
- "$color": "#AE5032",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/8599099.jpg",
- "$area": 198
- },
- "id": "album-On And On",
- "name": "On And On"
- },
- {
- "children": [],
- "data": {
- "artist": "Jack Johnson",
- "playcount": "186",
- "$color": "#B34B32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/30082075.jpg",
- "$area": 186
- },
- "id": "album-Brushfire Fairytales",
- "name": "Brushfire Fairytales"
- }
- ],
- "data": {
- "playcount": 384,
- "$area": 384
- },
- "id": "artist_Jack Johnson",
- "name": "Jack Johnson"
- },
- {
- "children": [
- {
- "children": [],
- "data": {
- "artist": "Mother Love Bone",
- "playcount": "349",
- "$color": "#718D32",
- "image": "http:\/\/userserve-ak.last.fm\/serve\/300x300\/21881921.jpg",
- "$area": 349
- },
- "id": "album-Mother Love Bone",
- "name": "Mother Love Bone"
- }
- ],
- "data": {
- "playcount": 349,
- "$area": 349
- },
- "id": "artist_Mother Love Bone",
- "name": "Mother Love Bone"
- }
- ],
- "data": {},
- "id": "root",
- "name": "Top Albums"
- };
- //end
- //init TreeMap
- var tm = new $jit.TM.Squarified({
- //where to inject the visualization
- injectInto: 'infovis',
- //no parent frames
- titleHeight: 0,
- //enable animations
- animate: animate,
- //no box offsets
- offset: 0,
- //add cushion gradients
- cushion: useGradients,
- //duration of the animation
- duration: 1500,
- //Enable tips
- Tips: {
- enable: true,
- //add positioning offsets
- offsetX: 20,
- offsetY: 20,
- //implement the onShow method to
- //add content to the tooltip when a node
- //is hovered
- onShow: function(tip, node, isLeaf, domElement) {
- var html = "
" + node.name
- + "
";
- var data = node.data;
- if(data.artist) {
- html += "Artist: " + data.artist + "
";
- }
- if(data.playcount) {
- html += "Play count: " + data.playcount;
- }
- if(data.image) {
- html += "
";
- }
- tip.innerHTML = html;
- }
- },
- //Add the name of the node in the correponding label
- //This method is called once, on label creation.
- onCreateLabel: function(domElement, node){
- domElement.innerHTML = node.name;
- var style = domElement.style;
- style.display = '';
- style.cursor = 'default';
- style.border = '1px solid transparent';
- domElement.onmouseover = function() {
- style.border = '1px solid #9FD4FF';
- };
- domElement.onmouseout = function() {
- style.border = '1px solid transparent';
- };
- }
- });
-
- tm.loadJSON(json);
- tm.refresh();
- //end
- //add events to radio buttons
- var sq = $jit.id('r-sq'),
- st = $jit.id('r-st'),
- sd = $jit.id('r-sd');
- var util = $jit.util;
- util.addEvent(sq, 'change', function() {
- if(!sq.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Squarified);
- tm.refresh();
- });
- util.addEvent(st, 'change', function() {
- if(!st.checked) return;
- util.extend(tm, new $jit.Layouts.TM.Strip);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- util.addEvent(sd, 'change', function() {
- if(!sd.checked) return;
- util.extend(tm, new $jit.Layouts.TM.SliceAndDice);
- tm.layout.orientation = "v";
- tm.refresh();
- });
- //add event to the back button
- var back = $jit.id('back');
- $jit.util.addEvent(back, 'click', function() {
- tm.out();
- });
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/AreaChart.css b/app/assets/javascripts/Jit/Examples/css/AreaChart.css
deleted file mode 100644
index 7242e1a9..00000000
--- a/app/assets/javascripts/Jit/Examples/css/AreaChart.css
+++ /dev/null
@@ -1,114 +0,0 @@
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
-}
-
-#id-list {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- margin:10px 20px 0 20px;
- padding:5px;
- text-align:left;
- text-indent:2px;
-}
-
-#id-list li {
- list-style: none;
- margin-bottom:3px;
-
-}
-
-.query-color {
- border:1px solid #999999;
- float:left;
- height:10px;
- margin:3px 3px 0 0;
- width:10px;
-}
-
-#update, #restore {
- text-align: center;
- width: 100px;
- margin:10px 35px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* gray */
-.gray {
- color: #e9e9e9;
- border: solid 1px #555;
- background: #6e6e6e;
- background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
- background: -moz-linear-gradient(top, #888, #575757);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
-}
-
-.gray:hover {
- background: #616161;
- background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
- background: -moz-linear-gradient(top, #757575, #4b4b4b);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
-}
-
-.gray:active {
- color: #afafaf;
- background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
- background: -moz-linear-gradient(top, #575757, #888);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/BarChart.css b/app/assets/javascripts/Jit/Examples/css/BarChart.css
deleted file mode 100644
index 3b5ec4c9..00000000
--- a/app/assets/javascripts/Jit/Examples/css/BarChart.css
+++ /dev/null
@@ -1,112 +0,0 @@
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
-}
-
-#id-list {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- margin:10px 20px 0 20px;
- padding:5px;
- text-align:left;
- text-indent:2px;
-}
-
-#id-list li {
- list-style: none;
- margin-bottom:3px;
-
-}
-
-.query-color {
- border:1px solid #999999;
- float:left;
- height:10px;
- margin:3px 3px 0 0;
- width:10px;
-}
-
-#update {
- margin:10px 40px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* gray */
-.gray {
- color: #e9e9e9;
- border: solid 1px #555;
- background: #6e6e6e;
- background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
- background: -moz-linear-gradient(top, #888, #575757);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
-}
-
-.gray:hover {
- background: #616161;
- background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
- background: -moz-linear-gradient(top, #757575, #4b4b4b);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
-}
-
-.gray:active {
- color: #afafaf;
- background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
- background: -moz-linear-gradient(top, #575757, #888);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/ForceDirected.css b/app/assets/javascripts/Jit/Examples/css/ForceDirected.css
deleted file mode 100644
index fd2cbb53..00000000
--- a/app/assets/javascripts/Jit/Examples/css/ForceDirected.css
+++ /dev/null
@@ -1,27 +0,0 @@
-#inner-details {
- font-size:12px;
-}
-
-span.close {
- color:#FF5555;
- cursor:pointer;
- font-weight:bold;
- margin-left:3px;
-}
-
-span.name {
- cursor: pointer;
-}
-
-/*TOOLTIPS*/
-.tip {
- text-align: left;
- width:auto;
- max-width:500px;
-}
-
-.tip-title {
- font-size: 11px;
- text-align:center;
- margin-bottom:2px;
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/HeatMap.css b/app/assets/javascripts/Jit/Examples/css/HeatMap.css
deleted file mode 100644
index e69de29b..00000000
diff --git a/app/assets/javascripts/Jit/Examples/css/Hypertree.css b/app/assets/javascripts/Jit/Examples/css/Hypertree.css
deleted file mode 100644
index 53ecca17..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Hypertree.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#infovis-canvaswidget {
- margin:25px 0 0 25px;
-}
\ No newline at end of file
diff --git a/app/assets/javascripts/Jit/Examples/css/Icicle.css b/app/assets/javascripts/Jit/Examples/css/Icicle.css
deleted file mode 100644
index c599d629..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Icicle.css
+++ /dev/null
@@ -1,79 +0,0 @@
-#update {
- margin:10px 40px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
-
-
-.tip {
- text-align: left;
- width:auto;
- max-width:500px;
-}
-
-.tip-title {
- font-size: 11px;
- text-align:center;
- margin-bottom:2px;
-}
-
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
-}
-
diff --git a/app/assets/javascripts/Jit/Examples/css/Other.css b/app/assets/javascripts/Jit/Examples/css/Other.css
deleted file mode 100644
index ed6dacc8..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Other.css
+++ /dev/null
@@ -1,8 +0,0 @@
-#right-container {
- display:none;
-}
-
-#infovis {
- width:800px;
- background-color:#1a1a1a;
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/PieChart.css b/app/assets/javascripts/Jit/Examples/css/PieChart.css
deleted file mode 100644
index 3b5ec4c9..00000000
--- a/app/assets/javascripts/Jit/Examples/css/PieChart.css
+++ /dev/null
@@ -1,112 +0,0 @@
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
-}
-
-#id-list {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- margin:10px 20px 0 20px;
- padding:5px;
- text-align:left;
- text-indent:2px;
-}
-
-#id-list li {
- list-style: none;
- margin-bottom:3px;
-
-}
-
-.query-color {
- border:1px solid #999999;
- float:left;
- height:10px;
- margin:3px 3px 0 0;
- width:10px;
-}
-
-#update {
- margin:10px 40px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* gray */
-.gray {
- color: #e9e9e9;
- border: solid 1px #555;
- background: #6e6e6e;
- background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
- background: -moz-linear-gradient(top, #888, #575757);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
-}
-
-.gray:hover {
- background: #616161;
- background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
- background: -moz-linear-gradient(top, #757575, #4b4b4b);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
-}
-
-.gray:active {
- color: #afafaf;
- background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
- background: -moz-linear-gradient(top, #575757, #888);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/RGraph.css b/app/assets/javascripts/Jit/Examples/css/RGraph.css
deleted file mode 100644
index e69de29b..00000000
diff --git a/app/assets/javascripts/Jit/Examples/css/Spacetree.css b/app/assets/javascripts/Jit/Examples/css/Spacetree.css
deleted file mode 100644
index 6c6b2b81..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Spacetree.css
+++ /dev/null
@@ -1,59 +0,0 @@
-.jit-autoadjust-label {
- padding: 15px;
-}
-
-#update, #restore {
- text-align: center;
- width: 100px;
- margin:0px 35px 10px 35px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/Sunburst.css b/app/assets/javascripts/Jit/Examples/css/Sunburst.css
deleted file mode 100644
index 0b0467a8..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Sunburst.css
+++ /dev/null
@@ -1,32 +0,0 @@
-/*TOOLTIPS*/
-#inner-details {
- font-size:12px;
-}
-
-.tip {
- text-align: left;
- width:auto;
- max-width:500px;
-}
-
-.tip-title {
- font-size: 11px;
- text-align:center;
- margin-bottom:2px;
-}
-
-pre {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- font-size:10px;
- margin:5px auto;
- padding:5px;
- width:170px;
-
- white-space: pre-wrap;
- white-space: -moz-pre-wrap;
- white-space: -webkit-pre-wrap;
- white-space: -pre-wrap;
- white-space: -o-pre-wrap;
- word-wrap: break-word;
-}
\ No newline at end of file
diff --git a/app/assets/javascripts/Jit/Examples/css/TimeGraph.css b/app/assets/javascripts/Jit/Examples/css/TimeGraph.css
deleted file mode 100644
index 65add9ce..00000000
--- a/app/assets/javascripts/Jit/Examples/css/TimeGraph.css
+++ /dev/null
@@ -1,113 +0,0 @@
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
- /*height: 250px;*/
-}
-
-#id-list {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- margin:10px 20px 0 20px;
- padding:5px;
- text-align:left;
- text-indent:2px;
-}
-
-#id-list li {
- list-style: none;
- margin-bottom:3px;
-
-}
-
-.query-color {
- border:1px solid #999999;
- float:left;
- height:10px;
- margin:3px 3px 0 0;
- width:10px;
-}
-
-#update {
- margin:10px 40px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* gray */
-.gray {
- color: #e9e9e9;
- border: solid 1px #555;
- background: #6e6e6e;
- background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
- background: -moz-linear-gradient(top, #888, #575757);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
-}
-
-.gray:hover {
- background: #616161;
- background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
- background: -moz-linear-gradient(top, #757575, #4b4b4b);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
-}
-
-.gray:active {
- color: #afafaf;
- background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
- background: -moz-linear-gradient(top, #575757, #888);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
diff --git a/app/assets/javascripts/Jit/Examples/css/Treemap.css b/app/assets/javascripts/Jit/Examples/css/Treemap.css
deleted file mode 100644
index c4b3d02f..00000000
--- a/app/assets/javascripts/Jit/Examples/css/Treemap.css
+++ /dev/null
@@ -1,109 +0,0 @@
-#right-container {
- display: none;
-}
-
-#center-container {
- width:800px;
-}
-
-#infovis {
- width:800px;
-}
-
-.node {
- color:#fff;
- font-size:9px;
- overflow:hidden;
- cursor:pointer;
-/*
- text-shadow:2px 2px 5px #000;
- -o-text-shadow:2px 2px 5px #000;
- -webkit-text-shadow:2px 2px 5px #000;
- -moz-text-shadow:2px 2px 5px #000;
-*/
-}
-
-/*TOOLTIPS*/
-.tip {
- color: #fff;
- width: 139px;
- background-color: black;
- opacity:0.9;
- filter:alpha(opacity=90);
- font-size:10px;
- font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding:7px;
-}
-
-.album {
- width:100px;
- margin:3px;
-}
-
-#id-list {
- background-color:#EEEEEE;
- border:1px solid #CCCCCC;
- margin:10px 20px 0 20px;
- padding:5px;
- text-align:left;
- text-indent:2px;
-}
-
-#id-list table {
- margin-top:2px;
-}
-
-#back {
- margin:10px 40px;
-}
-
-.button {
- display: inline-block;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 14px / 100% Arial, Helvetica, sans-serif;
- padding: 0.5em 1em 0.55em;
- text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
- -webkit-border-radius: 0.5em;
- -moz-border-radius: 0.5em;
- border-radius: 0.5em;
- -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
-}
-
-.button:hover {
- text-decoration: none;
-}
-
-.button:active {
- position: relative;
- top: 1px;
-}
-
-/* white */
-.white {
- color: #606060;
- border: solid 1px #b7b7b7;
- background: #fff;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
- background: -moz-linear-gradient(top, #fff, #ededed);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
-}
-
-.white:hover {
- background: #ededed;
- background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
- background: -moz-linear-gradient(top, #fff, #dcdcdc);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
-}
-
-.white:active {
- color: #999;
- background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
- background: -moz-linear-gradient(top, #ededed, #fff);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
-}
-
diff --git a/app/assets/javascripts/Jit/Examples/css/base.css b/app/assets/javascripts/Jit/Examples/css/base.css
deleted file mode 100644
index dafd35e9..00000000
--- a/app/assets/javascripts/Jit/Examples/css/base.css
+++ /dev/null
@@ -1,123 +0,0 @@
-html, body {
- margin:0;
- padding:0;
- font-family: "Lucida Grande", Verdana;
- font-size: 0.9em;
- text-align: center;
- background-color:#F2F2F2;
-}
-
-input, select {
- font-size:0.9em;
-}
-
-table {
- margin-top:-10px;
- margin-left:7px;
-}
-
-h4 {
- font-size:1.1em;
- text-decoration:none;
- font-weight:normal;
- color:#23A4FF;
-}
-
-a {
- color:#23A4FF;
-}
-
-#container {
- width: 1000px;
- height: 600px;
- margin:0 auto;
- position:relative;
-}
-
-#left-container,
-#right-container,
-#center-container {
- height:600px;
- position:absolute;
- top:0;
-}
-
-#left-container, #right-container {
- width:200px;
- color:#686c70;
- text-align: left;
- overflow: auto;
- background-color:#fff;
- background-repeat:no-repeat;
- border-bottom:1px solid #ddd;
-}
-
-#left-container {
- left:0;
- background-image:url('col2.png');
- background-position:center right;
- border-left:1px solid #ddd;
-
-}
-
-#right-container {
- right:0;
- background-image:url('col1.png');
- background-position:center left;
- border-right:1px solid #ddd;
-}
-
-#right-container h4{
- text-indent:8px;
-}
-
-#center-container {
- width:600px;
- left:200px;
- background-color:#1a1a1a;
- color:#ccc;
-}
-
-.text {
- margin: 7px;
-}
-
-#inner-details {
- font-size:0.8em;
- list-style:none;
- margin:7px;
-}
-
-#log {
- position:absolute;
- top:10px;
- font-size:1.0em;
- font-weight:bold;
- color:#23A4FF;
-}
-
-
-#infovis {
- position:relative;
- width:600px;
- height:600px;
- margin:auto;
- overflow:hidden;
-}
-
-/*TOOLTIPS*/
-.tip {
- color: #111;
- width: 139px;
- background-color: white;
- border:1px solid #ccc;
- -moz-box-shadow:#555 2px 2px 8px;
- -webkit-box-shadow:#555 2px 2px 8px;
- -o-box-shadow:#555 2px 2px 8px;
- box-shadow:#555 2px 2px 8px;
- opacity:0.9;
- filter:alpha(opacity=90);
- font-size:10px;
- font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding:7px;
-}
\ No newline at end of file
diff --git a/app/assets/javascripts/Jit/Examples/css/col1.png b/app/assets/javascripts/Jit/Examples/css/col1.png
deleted file mode 100644
index 7ab008fb..00000000
Binary files a/app/assets/javascripts/Jit/Examples/css/col1.png and /dev/null differ
diff --git a/app/assets/javascripts/Jit/Examples/css/col2.png b/app/assets/javascripts/Jit/Examples/css/col2.png
deleted file mode 100644
index c0d3891b..00000000
Binary files a/app/assets/javascripts/Jit/Examples/css/col2.png and /dev/null differ
diff --git a/app/assets/javascripts/Jit/Examples/css/gradient.png b/app/assets/javascripts/Jit/Examples/css/gradient.png
deleted file mode 100644
index e283966f..00000000
Binary files a/app/assets/javascripts/Jit/Examples/css/gradient.png and /dev/null differ
diff --git a/app/assets/javascripts/Jit/Examples/ForceDirected/example1.js b/app/assets/javascripts/Jit/ForceDirected/metamap.js
similarity index 100%
rename from app/assets/javascripts/Jit/Examples/ForceDirected/example1.js
rename to app/assets/javascripts/Jit/ForceDirected/metamap.js
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index c59570bc..135a7ccc 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -13,10 +13,9 @@
//= require jquery
//= require jquery_ujs
//= require_tree .
-//= require Jit/jit
//= require Jit/jit-yc
//= require Jit/excanvas
-//= require Jit/Examples/ForceDirected/example1
+//= require Jit/ForceDirected/metamap
$(document).ready(function() {
$('.nodemargin').css('padding-top',$('.focus').css('height'));
diff --git a/test/fixtures/groupgroups.yml b/test/fixtures/groupgroups.yml
deleted file mode 100644
index 4a714bcf..00000000
--- a/test/fixtures/groupgroups.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- group_id: 1
- parent_group_id: 1
diff --git a/test/fixtures/groupitems.yml b/test/fixtures/groupitems.yml
deleted file mode 100644
index 2d5eb392..00000000
--- a/test/fixtures/groupitems.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- group_id: 980190962
- item_id: 980190962
diff --git a/test/fixtures/grouppeople.yml b/test/fixtures/grouppeople.yml
deleted file mode 100644
index 6d6a6cb4..00000000
--- a/test/fixtures/grouppeople.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- group_id: 980190962
- person_id: 980190962
diff --git a/test/fixtures/groups.yml b/test/fixtures/groups.yml
deleted file mode 100644
index 1faf1197..00000000
--- a/test/fixtures/groups.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- name: Emerging Leader Labs
- desc: post-monetary social incubator
- link: http://emergingleaderlabs.org
-
-two:
- name: Household-As-Ecology
- desc: Humanity 3.0 intentional household
- link: http://householdasecology.org
diff --git a/test/fixtures/itemitems.yml b/test/fixtures/itemitems.yml
deleted file mode 100644
index 50790939..00000000
--- a/test/fixtures/itemitems.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-
diff --git a/test/fixtures/items.yml b/test/fixtures/items.yml
deleted file mode 100644
index cf51f2cc..00000000
--- a/test/fixtures/items.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- name: Sacred Economics
- desc: A clear outline of our necessity for remodeling our economic thinking to a more holistic perspective. Well-written and nice storytelling.
- link: http://sacred-economics.com/
diff --git a/test/fixtures/people.yml b/test/fixtures/people.yml
deleted file mode 100644
index 311e6bb2..00000000
--- a/test/fixtures/people.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- name: Venessa Miemis
- desc: Culture hacker.
- link: http://emergentbydesign.com
-
-two:
- name: Seb Paquet
- desc: Culture hacker.
- link: http://emergentcities.sebpaquet.net/
diff --git a/test/fixtures/personitems.yml b/test/fixtures/personitems.yml
deleted file mode 100644
index 10c14d18..00000000
--- a/test/fixtures/personitems.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- person_id: 980190962
- item_id: 980190962