From c880d7f66b4fdbdb6369eefb55d8bbe912bcc66e Mon Sep 17 00:00:00 2001 From: nagarjun Date: Sat, 7 Jul 2012 21:00:30 +0530 Subject: removed ellipse effect in the graph from nighbouring nodes for better readability by 0 values. kept ellipse function as it is --- gstudio/templates/gstudio/skeleton.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gstudio/templates/gstudio/skeleton.html') 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"}); -- cgit v1.1