Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

d3 arrows in Force Directed Graph

I am puzzled. Why by simply copying and pasting the example http://bl.ocks.org/1153292 the arrows do not align. (see below)

enter image description here

UPDATE: it works in chrome and safai but not in Firefox... even more puzzled. Any ideas?

What would you change in the example to get straight lines instead of curves?

Thanks.

like image 394
Gian Avatar asked Jul 12 '12 03:07

Gian


2 Answers

This works in Chrome and Safari and is broken in Firefox 14 (and maybe earlier). It is fixed in Firefox 15 and onwards. See bug https://bugzilla.mozilla.org/show_bug.cgi?id=773266

I have tested it on Firefox 14 (it fails) and 15 (it passes).

The answer to the original question is: Because it is broken in Firefox.

like image 176
Spaceghost Avatar answered Nov 11 '22 18:11

Spaceghost


It also happened to me. But I solved it by the following way. Open firebug. goto svg > defs > marker section. Then make changes to refX and refY value. It works for me.

like image 32
sbillah Avatar answered Nov 11 '22 16:11

sbillah