Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'll throw one more answer in, although the answers above are all in the ballpark.</p> <p>Let's assume you want to work on all browsers. If you need to work on Internet Explorer, and you code your own Canvas solution, you may want to include <a href="http://excanvas.sourceforge.net/" rel="nofollow noreferrer">ExplorerCanvas</a>.</p> <p>Family trees are essentially binary trees -- I know, real life is tricky with adoptions, divorces, ugh, but let's just assume for a second that they're binary going in one direction (ancestors) from a particular person.</p> <p>A good tool that uses Canvas, has the bridge to work on IE included, and uses a simple and general data format is the JavaScript InfoVis Toolkit.</p> <p>Check out the sample at: <a href="http://thejit.org/static/v20/Jit/Examples/Spacetree/example2.html" rel="nofollow noreferrer">http://thejit.org/static/v20/Jit/Examples/Spacetree/example2.html</a></p> <p>It may not be exactly what you want out of the box, but you can tweak the look and feel.</p> <p>The data payload to plug-in is very simple, and your example would look something like this:</p> <pre><code>var tree = { id: "ME", // Needs to be internally unique name: "ME", // Visual label, does not need to match id data: {}, // not really used here, but parameter needed children: [ {id: "DAD", name: "DAD", data: {}, children: [ {id: "GrDAD1", name: "GrDAD1", data: {}, children: []}, {id: "GrMOM1", name: "GrMOM1", data: {}, children: []}, ]}, {id: "MOM", name: "MOM", data: {}, children: [ {id: "GrDAD2", name: "GrDAD2", data: {}, children: []}, {id: "GrMOM2", name: "GrMOM2", data: {}, children: []}, ]} ] }; </code></pre> <p>I'm sure there are other solutions out there, and I hope you find one that works for you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload