diff options
author | nagarjun <nagarjun@gnowledge.org> | 2012-07-07 21:00:30 +0530 |
---|---|---|
committer | nagarjun <nagarjun@gnowledge.org> | 2012-07-07 21:00:30 +0530 |
commit | c880d7f66b4fdbdb6369eefb55d8bbe912bcc66e (patch) | |
tree | f05785e3f520a6758b632a5672500eb3f012729f /gstudio/templates | |
parent | 91e1425abd4f1ef62a2fc6087dca51703fed4a08 (diff) | |
download | gnowsys-c880d7f66b4fdbdb6369eefb55d8bbe912bcc66e.tar.gz |
removed ellipse effect in the graph from nighbouring nodes for better readability by 0 values. kept ellipse function as it is
Diffstat (limited to 'gstudio/templates')
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 7d4179b..7c1c698 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -426,10 +426,10 @@ function load(key) var force = d3.layout.force() - .linkStrength(0.5) - .charge(-5000) + .linkStrength(1) + .charge(-4000) .friction(0.7) - .gravity(0.7) + .gravity(0.4) .linkDistance(50) .nodes([]) .links([]) @@ -668,7 +668,7 @@ $(window).bind('keydown',function(event) { new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect") .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("width", function(d) {var ttx=d.screen_name ; return (ttx.length+bbox.width+50)}) .attr("height", bbox.height) .call(force.drag) .style("fill-opacity", ".1") @@ -684,11 +684,11 @@ $(window).bind('keydown',function(event) { .attr("cx", bbox.x+25) .attr("cy", bbox.y+13) .call(force.drag) - .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 40)}) + .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 70)}) .attr("ry",13) - .style("fill-opacity", ".2") - .style("stroke", "#666") - .style("stroke-width", "1.5px") + .style("fill-opacity", "0.3") + .style("stroke", "white") + .style("stroke-width", "0.0px") .style("fill", function(d) {if ((d.expanded=="true" && d.refType=="Objecttype") ||(d._id=={{object.id}}) ) return "blue"; else if(d.expanded=="true" && d.refType=="Gbobject") return "red"; else return "none"}); |