Generating E-R Diagram using D3JS. Need Orthogonal Layout in D3JS.

1,427 views
Skip to first unread message

Ankit Agarwal

unread,
Mar 3, 2014, 9:00:37 AM3/3/14
to d3...@googlegroups.com
I am trying to develop a Entity-Relationship diagram using D3js. I took help of Force-Layout but it failed to give desired output. What I need is called "Orthogonal Planar Layout". It is used in graph theory to generate E-R Diagrams. Is there anything related to this is available in D3Js. If not is there any chance of getting it in future developments of D3Js.

Marc Fawzi

unread,
Mar 3, 2014, 4:00:22 PM3/3/14
to d3...@googlegroups.com
the way I see it is that D3 is not intended for general diagram creation but for binding data to visual elements. AFAIK, the force directed diagram allows for relationships between entities to be defined as part of the data but I think it's more suited to self organizing networks than ER diagrams.

If you don't care about D3's update transitions there are many general SVG drawing libraries that you can use including Raphael, snap.svg, etc 

Sent from my iPhone

On Mar 3, 2014, at 6:00 AM, Ankit Agarwal <love.a...@gmail.com> wrote:

I am trying to develop a Entity-Relationship diagram using D3js. I took help of Force-Layout but it failed to give desired output. What I need is called "Orthogonal Planar Layout". It is used in graph theory to generate E-R Diagrams. Is there anything related to this is available in D3Js. If not is there any chance of getting it in future developments of D3Js.

--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Julio Castro

unread,
Mar 4, 2014, 9:18:34 AM3/4/14
to d3...@googlegroups.com
Interesting, I was thinking recently about the same. I discarded Force-layout due to its non-deterministic presentation. However, I thought that a tree mechanism could probably get you much further. The issue of course are the loops... So, maybe the spatial layout algorithms of the trees could help, but the presentation would differ... So not quite copy-paste...
Let me know if you progress with this... As you can see, I parked the idea for the time being due to other priorities...
Reply all
Reply to author
Forward
0 new messages