Dear friends, I am interested in creating a tree structure like the image attacched using jquery and json data.
datasets:
[{'name':'xxx', position:'left','parent': 0},
{'name':'yyy', position:'left','parent': 1},
{'name':'yyy', position:'middle','parent': 1},
{'name':'yyy', position:'right','parent': 1},
{'name':'yyy', position:'left','parent': 2},
{'name':'yyy', position:'right','parent': 2},
{'name':'yyy', position:'left','parent': 3}]
Where,
name - specifies name of the node
parent - node will be given number nodes direct child
position: [left/right/middle]position of the node to the parent
How to achieve this structure??.. Please suggest me.. Thank you in advance..