Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stracure data like this #41

Closed
webineh opened this issue Jul 26, 2016 · 1 comment
Closed

stracure data like this #41

webineh opened this issue Jul 26, 2016 · 1 comment

Comments

@webineh
Copy link

webineh commented Jul 26, 2016

very thanks for orgchart , do it work in bellow structure data ??

 { id: '1', parent: '' },
 { id: '2', parent: '1' },
 { id: '3', parent: '1' },
 { id: '4', parent: '2' },
 { id: '5', parent: '3' },
@dabeng
Copy link
Owner

dabeng commented Jul 28, 2016

Hi @vahidalvandi , first of all, thanks for your proposal. Frankly, I don't believe the above format(similar to traditional tree-like table schema in RDBMS) of datasource is an feasible alternative. Imagine that every time the internal login of orgchart plugin reads a new node data, it has to append new child node and change the link-lines, it's too expensive. Besides, once there is an incorrect "parent" attribute, it‘s likely to result in the breakdown of orgchart construction.

@dabeng dabeng closed this as completed Aug 3, 2016
@dabeng dabeng reopened this Aug 3, 2016
@dabeng dabeng closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant