1 image
Author
Description
Tree Graph Simple. You can make Tree Graph view using array. I can take a array and add relationship with data. Array Is this Format.
NSMutableArray *dataArray = [NSMutableArray new];
// Demo Data Creation to represent the flat data
[dataArray addObject:@{@"emp_id":@100}];
[dataArray addObject:@{@"emp_id":@1000,@"mgr_id":@100}];
[dataArray addObject:@{@"emp_id":@2000,@"mgr_id":@100}];
[dataArray addObject:@{@"emp_id":@3000,@"mgr_id":@2000}];
[dataArray addObject:@{@"emp_id":@4000,@"mgr_id":@1000}];
[dataArray addObject:@{@"emp_id":@4001,@"mgr_id":@1000}];
[dataArray addObject:@{@"emp_id":@5000,@"mgr_id":@4000}];
[dataArray addObject:@{@"emp_id":@5001,@"mgr_id":@4000}];
[dataArray addObject:@{@"emp_id":@6002,@"mgr_id":@5000}];