Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Orgchart create marriage

Hi im using Google Orgchart to create a family tree, where I combine three families.

How can I create lines between people who are married but from different families like below.

+----------+                  +----------+
| Family 1 |                  | Family 2 |
+----------+                  +----------+
     |                             |
     |                 +-----------+-----------+
     |                 |                       |
+----------+      +----------+           +-----------+    +----------+
|  Husband |------|   Wife   |           | Wife's Bro|----| Bro's GF |
+----------+      +----------+           +-----------+    +----------+
like image 275
Michael Tot Korsgaard Avatar asked Jul 17 '12 18:07

Michael Tot Korsgaard


1 Answers

It's impossible with Google Organizational Chart. Read documentation of data format.

A table with three string string columns, where each row represents a node in the orgchart. Here are the three columns:

Column 0 - The node ID. It should be unique among all nodes, and can include any characters, including spaces. This is shown on the node. You can specify a formatted value to show on the chart instead, but the unformatted value is still used as the ID.

Column 1 - [optional] The ID of the parent node. This should be the unformatted value from column 0 of another row. Leave unspecified for a root node.

Column 2 - [optional] Tool-tip text to show, when a user hovers over this node.

Each node can have zero or one parent node, and zero or more child nodes.

You can build multiple trees but it's impossible to join them. (one of node should have two parents or siblings).


Try using other library:

  • lib_gg_orgchart. This library support siblings nodes: example1, example2
  • Dracula Graph Library
  • Protovis
  • Ftree

...or maybe integerate with Geni

like image 160
rogal111 Avatar answered Sep 20 '22 23:09

rogal111