-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson template
More file actions
26 lines (25 loc) · 947 Bytes
/
json template
File metadata and controls
26 lines (25 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
dataset : {
nodes : [{
index : <standard index number that d3 uses>,
id: <key identifier for the model>,
nodeType : <enum field>,
attributes : {<contents may vary depending on node type>}
x : <The x-coordinate of the current node position>,
y : <The y-coordinate of the current node position>,
px: <The x-coordinate of the previous node position>,
py: <The y-coordinate of the previous node position>,
fixed: <a boolean indicating whether node position is locked>,
weight: <>
}],
links : [{
id: <key identifier for the model>,
source: < reference to the source node that the link is joined to>,
target: <reference to the the target node that the link is joined to>,
sourceID: <reference to the source node for the model interpretation>,
targetID: <reference to the target node for the model interpretation>,
linkType : <enum field>,
attributes : {<contents may vary depending on link type>}
}]
}
}