Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

basicprimitives creating a family tree which has multiple spouses and parents with no children

i use the below links, able to successful create a family tree

https://www.basicprimitives.com/index.php?option=com_phocadownload&view=file&id=5%3Aaspnetvasicprimitives&Itemid=21&lang=en

However the following

https://www.basicprimitives.com/index.php?option=com_content&view=article&id=81&Itemid=127&lang=en

this is the code block which gives boxes alone

<link href="../../min/primitives.latest.css?5000" media="screen" rel="stylesheet" type="text/css" />

<script type='text/javascript'>
    var control;

    document.addEventListener('DOMContentLoaded', function () {
        var options = new primitives.famdiagram.Config();

        options.items = [
            { id: 1, parents: [], spouses: ["2", "3"], title: "1", label: "1", description: "", image: "../images/photos/a.png", itemTitleColor: "#ff0000" },
            { id: 2, parents: [], title: "2", label: "2", description: "", image: "../images/photos/b.png", itemTitleColor: "#ff0000" },
            { id: 3, parents: [], title: "3", label: "3", description: "", image: "../images/photos/c.png", itemTitleColor: "#ff0000" }
        ];


        options.lineItemsInterval = 20;
        options.cursorItem = 1;
        options.hasSelectorCheckbox = primitives.common.Enabled.False;
        options.arrowsDirection = primitives.common.GroupByType.Children;
        options.pageFitMode = primitives.common.PageFitMode.None;

        control = primitives.famdiagram.Control(document.getElementById('basicdiagram'), options);
    });

</script>

i am trying to achieve in the above asp .net sample. it simply shows parents without children as boxes no connection between them

any one can guide

Comments