summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/skeleton.html
diff options
context:
space:
mode:
authorshefali shetty <sshefali44@gmail.com>2012-05-09 11:24:16 +0530
committershefali shetty <sshefali44@gmail.com>2012-05-09 11:24:16 +0530
commitbe7765e07e626c8be1e3d433ddb2e4f84259cf59 (patch)
treeae040295d5633b2f920349a1fcb1ef28459c5fed /gstudio/templates/gstudio/skeleton.html
parentee3c53484190eab032c28471d2082310b04dab86 (diff)
downloadgnowsys-be7765e07e626c8be1e3d433ddb2e4f84259cf59.tar.gz
bug related to 'relation' is rectified
Diffstat (limited to 'gstudio/templates/gstudio/skeleton.html')
-rw-r--r--gstudio/templates/gstudio/skeleton.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html
index 41df756..c5a15c3 100644
--- a/gstudio/templates/gstudio/skeleton.html
+++ b/gstudio/templates/gstudio/skeleton.html
@@ -192,10 +192,10 @@ function init(a,b)
all_edges =_(b).chain().map(function(e) {
e.source = nodes_by_id[e.from];
e.target = nodes_by_id[e.to];
-
+ //`e.type = nodes_by_id[e.type]
return e;
}).filter(function(e){
- return nodes_by_id[e.from] && nodes_by_id[e.to]&& e.type!="title" && e.type!="content"
+ return nodes_by_id[e.from] && nodes_by_id[e.to]&& e.type!="title" && e.type!="content"
}).value();
@@ -253,7 +253,7 @@ var a = 25 * s;
.charge(-5000)
.friction(0.7)
.gravity(0.7)
- .linkDistance(75)
+ .linkDistance(50)
.nodes([])
.links([])
.size([w, h])
@@ -304,12 +304,13 @@ var a = 25 * s;
})
.attr("text", function(d) {
return d.type;
- })
+ });
+
+
+
+
- .append("a")
- .text(function(d) { return d.type; });
-
var node = d3.select("#chart g.nodes").selectAll("g.node").data(nodes);
@@ -383,7 +384,8 @@ $(window).bind('keydown',function(event){
new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect")
- .attr("x",bbox.x-22)
+ .attr("x",bbox.x-22
+ )
.attr("y", bbox.y)
.attr("width", function(d) {var ttx=d.screen_name ; return (ttx.length+bbox.width+40)})
.attr("height", bbox.height)
@@ -411,6 +413,7 @@ $(window).bind('keydown',function(event){
+
node.exit().remove();