Looking for a Family Tree [closed]

2019-03-18 00:19发布

问题:

I am creating Family Tree feature for my web app with HTML5 requirements. I already searched and found some JS samples, but I haven't find any that fit with my requirements. I already tried JIT, Rafael, GoJS, etc.

I found this to be the closest one is from GoJS:

GoJS fam-tree option #1

But this not enough. I need to connect one member with another member with drag and drop function.

Is there some JS that may fit with the requirements or at least operate like GoJS? Since I need to pay a license for GoJS AND THEN customize it, the budget is tight. Thank you very much.

回答1:

The functionality you're looking for is built in to GoJS. For instance have a look at the
Org Chart Editor Sample.

You can double click on nodes in order to add a new person, drag a node onto another in order to change relationships, and draw links (with a click drag operation) from a node's background to other nodes that have no "boss".

(If you want a node to have no Boss in this simple sample, you can select and delete links)



回答2:

I already found it. I use jsPlumb for this Family Tree with some modification. Thanks for you all.