开发者

How to mimic this effect

I found the exact match for what I'm looking for, it's kind of a relationship user interface, please see

http://www.corporationwiki.com/Ohio/Powell/nutrition-forum-sports-llc/50101823.aspx

How to mimic this effect

Ho do I mimic that, I need to code a php aplication that retrieves relations from a database and displays them like that above, so that I have 1 (or many) center nodes, and several others around it poi开发者_StackOverflownting and linked to that node, displayed like that above.

Best Regards

PS: I will need to add and remove nodes "on the fly" live, like with jquery and ajax/json calls.

I see I was voted down, I'm sorry if this is not the place to ask this I will gladly retract my question. Can you then please be so kind to point me the place where to ask for this type of information instead of voting me down on my first question ever here?


Here are some suggestions, although the get more specific the comments above still apply.

  • Start with a simple test case, with just one centre node and a few child nodes. If something works in an easy case, move on to the next level of complexity and so on.

  • Whatever you try, expect the esthetics/clarity of your graph to break down when you reach a certain level of compexity - nodes will overlap, not appear where you want them, etc., so don't expect too much.

  • Look for a library that would help. In flash, several graph layouts must have been implemeted before. In Javascript too, there are drawing panel libraries, or you could use a library for SVG or... Look for something that suits. As a comment above says, PHP is probably not it.


Neo4J (Graph Database) is implemented in Java and should be capable of what you show in the image. I haven't had an opportunity to use it for anything, but it looks powerful, simple, and is open source (with good documentation). Also, try doing a search for Relationship Mapping and you may find what your looking for.


I recommend GraphViz for drawing static boxes and connecting them with arrow-headed lines. It has a very simple script (the shortest one is: "start -> stop", self-explanatory).

Some years ago I've made an XML file tree visualizer in PHP:

How to mimic this effect

.
As the figure shown, there's some kind of HTML table-like feature to draw a node. See GraphViz Gallery for some more exciting examples.

Update: As I mentioned, it's only for static, but you can make an app very quickly which displays the stuff. I've used my XML visualizer to make drawings for documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜