Skip to content

Commit 0d57987

Browse files
Brianna SookhooBrianna Sookhoo
authored andcommitted
getting link errors
1 parent 702bd92 commit 0d57987

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/charts/route-trace.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ class RouteTrace {
2222
console.log('data: ', data)
2323
console.log('nodes: ', data[0])
2424
console.log('links: ', data[1])
25-
26-
console.log('1st data point: ', data[0][0])
27-
console.log('4th data point: ', data[0][3])
2825

2926
var simulation = d3.forceSimulation(data[0])
3027
.force('link', d3.forceLink())
28+
// .force("link", d3.forceLink() // This force provides links between nodes
29+
// .id(function(d) { return d.id; }) // This provide the id of a node
30+
// .links(data[1]) // and this the list of links
31+
// )
3132
.force('charge', d3.forceManyBody())
3233
.force('center', d3.forceCenter(width / 2, height / 2))
3334

0 commit comments

Comments
 (0)