Skip to content

Commit

Permalink
add json data files
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilcodes committed Dec 10, 2021
1 parent 2a73ce4 commit ebc121d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lib/data-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nodes": [
{ "id": "Myriel", "group": 1 },
{ "id": "Mlle.Baptistine", "group": 2 },
{ "id": "Mme.Magloire", "group": 2 },
{ "id": "CountessdeLo", "group": 2 },
{ "id": "Geborand", "group": 2 },
{ "id": "Champtercier", "group": 3 },
{ "id": "Cravatte", "group": 3 },
{ "id": "Count", "group": 3 },
{ "id": "OldMan", "group": 3 },
{ "id": "Labarre", "group": 3 },
{ "id": "Valjean", "group": 4 },
{ "id": "Marguerite", "group": 4 }
],
"links": [
{ "source": "Mlle.Baptistine", "target": "Myriel", "value": 10 },
{ "source": "Mme.Magloire", "target": "Myriel", "value": 10 },
{ "source": "CountessdeLo", "target": "Myriel", "value": 10 },
{ "source": "Geborand", "target": "Myriel", "value": 10 },
{ "source": "Champtercier", "target": "Mme.Magloire", "value": 3 },
{ "source": "Cravatte", "target": "Mme.Magloire", "value": 3 },
{ "source": "Count", "target": "CountessdeLo", "value": 3 },
{ "source": "OldMan", "target": "Geborand", "value": 3 },
{ "source": "Labarre", "target": "Geborand", "value": 3 },
{ "source": "Valjean", "target": "Cravatte", "value": 1 },
{ "source": "Marguerite", "target": "Cravatte", "value": 1 }
]
}
17 changes: 17 additions & 0 deletions lib/data-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "parent",
"children": [
{ "name": "child-1", "children": [
{ "name": "1", "value": 1 },
{ "name": "2", "value": 2 },
{ "name": "3", "value": 3 }
]},
{ "name": "child-2", "children": [
{ "name": "1", "value": 4 }
]},
{ "name": "child-3", "children": [
{ "name": "1", "value": 5 },
{ "name": "2", "value": 6 }
]}
]
}

0 comments on commit ebc121d

Please sign in to comment.