Skip to content

Commit 0d0404a

Browse files
committed
update readme
1 parent b3c6301 commit 0d0404a

File tree

3 files changed

+42
-30
lines changed

3 files changed

+42
-30
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,39 +175,43 @@ We use the following two-dimensional array datasource to build up the Family Tre
175175
```
176176
var datascource = [
177177
[
178-
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather', 'gender': 'male' },
178+
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather' },
179179
{
180-
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'gender': 'female', 'outsider': true,
180+
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'outsider': true,
181181
'children': [
182182
[
183-
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt', 'gender': 'female'}
183+
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt' }
184184
],
185185
[
186-
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother', 'gender': 'female',
186+
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother',
187187
'children': [
188188
[
189189
190-
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'gender': 'female', 'outsider': true,
190+
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'outsider': true,
191191
'children': [
192-
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter', 'gender': 'female' }],
193-
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter', 'gender': 'female' }],
192+
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter' }],
193+
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter' }],
194194
]
195195
},
196-
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me', 'gender': 'male' },
196+
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me' },
197197
]
198198
]
199199
},
200-
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'gender': 'male', 'outsider': true }
200+
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'outsider': true }
201201
],
202202
[
203-
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt', 'gender': 'female'}
203+
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt' }
204204
]
205205
]
206206
}
207207
]
208208
];
209209
```
210210

211+
- [I want to add property tags to family tree](https://dabeng.github.io/OrgChart/familytree-custom-properties.html)
212+
213+
![familytree-custom-properties](http://dabeng.github.io/OrgChart/img/familytree-custom-properties.png)
214+
211215
### how to start up demos locally
212216

213217
- you have to install node.js v6+ because our unit tests are based on jsdom v11

README.zh-cn.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,39 +158,43 @@ $ npm install orgchart
158158
```
159159
var datascource = [
160160
[
161-
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather', 'gender': 'male' },
161+
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather' },
162162
{
163-
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'gender': 'female', 'outsider': true,
163+
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'outsider': true,
164164
'children': [
165165
[
166-
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt', 'gender': 'female'}
166+
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt' }
167167
],
168168
[
169-
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother', 'gender': 'female',
169+
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother',
170170
'children': [
171171
[
172172
173-
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'gender': 'female', 'outsider': true,
173+
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'outsider': true,
174174
'children': [
175-
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter', 'gender': 'female' }],
176-
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter', 'gender': 'female' }],
175+
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter' }],
176+
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter' }],
177177
]
178178
},
179-
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me', 'gender': 'male' },
179+
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me' },
180180
]
181181
]
182182
},
183-
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'gender': 'male', 'outsider': true }
183+
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'outsider': true }
184184
],
185185
[
186-
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt', 'gender': 'female'}
186+
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt' }
187187
]
188188
]
189189
}
190190
]
191191
];
192192
```
193193

194+
- [我想往族谱里追加一些自定义的标识](https://dabeng.github.io/OrgChart/familytree-custom-properties.html)
195+
196+
![familytree-custom-properties](http://dabeng.github.io/OrgChart/img/familytree-custom-properties.png)
197+
194198
### 本地运行orgchart
195199

196200
- 必须安装node.js v6+,因为我们的单元测试是基于jsdom v11。

README.zh-tw.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,39 +158,43 @@ $ npm install orgchart
158158
```
159159
var datascource = [
160160
[
161-
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather', 'gender': 'male' },
161+
{ 'id': '8', 'name': 'Lao Ye', 'title': 'Grandfather' },
162162
{
163-
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'gender': 'female', 'outsider': true,
163+
'id': '1', 'name': 'Lao Lao', 'title': 'Grandmother', 'outsider': true,
164164
'children': [
165165
[
166-
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt', 'gender': 'female'}
166+
{ 'id': '2', 'name': 'Bo miao', 'title': 'Aunt' }
167167
],
168168
[
169-
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother', 'gender': 'female',
169+
{ 'id': '3', 'name': 'Su Miao', 'title': 'Mother',
170170
'children': [
171171
[
172172
173-
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'gender': 'female', 'outsider': true,
173+
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'outsider': true,
174174
'children': [
175-
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter', 'gender': 'female' }],
176-
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter', 'gender': 'female' }],
175+
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter' }],
176+
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter' }],
177177
]
178178
},
179-
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me', 'gender': 'male' },
179+
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me' },
180180
]
181181
]
182182
},
183-
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'gender': 'male', 'outsider': true }
183+
{ 'id': '9', 'name': 'Tie Hua', 'title': 'Father', 'outsider': true }
184184
],
185185
[
186-
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt', 'gender': 'female'}
186+
{ 'id': '10', 'name': 'Hong miao', 'title': 'Aunt' }
187187
]
188188
]
189189
}
190190
]
191191
];
192192
```
193193

194+
- [我想往族譜裏追加一些自定義的標識](https://dabeng.github.io/OrgChart/familytree-custom-properties.html)
195+
196+
![familytree-custom-properties](http://dabeng.github.io/OrgChart/img/familytree-custom-properties.png)
197+
194198
### 本地運行orgchart
195199

196200
- 必須安裝node.js v6+,因爲我們的單元測試是基于jsdom v11。

0 commit comments

Comments
 (0)