TreeGraphView

MIT 许可证
Objective-C
iOS

1 张图片

作者

描述

Tree Graph 简单。您可以使用数组创建树形图视图。我可以带一个数组,并用数据添加关系。数组格式如下。

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}];

标签