Category : nodes

I want to create a tree with treant.js the structure form is like this: var tree_structure=[ {container: ‘#OrganiseChart8’, levelSeparation: 70, siblingSeparation: 60, nodeAlign: ‘BOTTOM’, connectors: { type: "step", style: { "stroke-width": 2, "stroke": "#ccc", "stroke-dasharray": "–", } }, {innerHTML: ‘#first-post’}, {parent: {innerHTML: ‘#first-post’}, innerHTML: ‘#1-reply’}, {parent: {innerHTML: ‘#first-post’}, innerHTML: ‘#2-reply’} }]; new Treant(tree_structure); displaying this ..

Read more