GetOrgChart - Box structure -
the problem if children larger 30 pieces latest box rises top , spoils entire structure. took here code examples you. please me, can't explain problem in details because english bad.
datasource: [ { id: 1, parentid: null, name: "amber mckenzie"}, { id: 2, parentid: 1, name: "ava field"}, { id: 37, parentid: 2, name: "evie johnson"}, { id: 3, parentid: 1, name: "evie johnson"}, { id: 4, parentid: 1, name: "evie johnson"}, { id: 5, parentid: 1, name: "evie johnson"}, { id: 6, parentid: 1, name: "evie johnson"}, { id: 7, parentid: 1, name: "evie johnson"}, { id: 8, parentid: 1, name: "evie johnson"}, { id: 9, parentid: 1, name: "evie johnson"}, { id: 10, parentid: 1, name: "evie johnson"}, { id: 11, parentid: 1, name: "evie johnson"}, { id: 12, parentid: 1, name: "evie johnson"}, { id: 13, parentid: 1, name: "evie johnson"}, { id: 14, parentid: 1, name: "evie johnson"}, { id: 15, parentid: 1, name: "evie johnson"}, { id: 16, parentid: 1, name: "evie johnson"}, { id: 17, parentid: 1, name: "evie johnson"}, { id: 18, parentid: 1, name: "evie johnson"}, { id: 19, parentid: 1, name: "evie johnson"}, { id: 20, parentid: 1, name: "evie johnson"}, { id: 21, parentid: 1, name: "evie johnson"}, { id: 22, parentid: 1, name: "evie johnson"}, { id: 23, parentid: 1, name: "evie johnson"}, { id: 24, parentid: 1, name: "evie johnson"}, { id: 25, parentid: 1, name: "evie johnson"}, { id: 26, parentid: 1, name: "evie johnson"}, { id: 27, parentid: 1, name: "evie johnson"}, { id: 28, parentid: 1, name: "evie johnson"}, { id: 29, parentid: 1, name: "evie johnson"}, { id: 30, parentid: 1, name: "evie johnson"}, { id: 31, parentid: 1, name: "evie johnson"}, { id: 32, parentid: 1, name: "evie johnson"} ]
the default value of maxdepth option 30. in case have increase it. here example:
var orgchart = new getorgchart(document.getelementbyid("people"), { primaryfields: ["name"], layout: getorgchart.mixed_hierarchy_right_links, maxdepth: 50,
Comments
Post a Comment