We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702bd92 commit 0d57987Copy full SHA for 0d57987
1 file changed
app/charts/route-trace.jsx
@@ -22,12 +22,13 @@ class RouteTrace {
22
console.log('data: ', data)
23
console.log('nodes: ', data[0])
24
console.log('links: ', data[1])
25
-
26
- console.log('1st data point: ', data[0][0])
27
- console.log('4th data point: ', data[0][3])
28
29
var simulation = d3.forceSimulation(data[0])
30
.force('link', d3.forceLink())
+ // .force("link", d3.forceLink() // This force provides links between nodes
+ // .id(function(d) { return d.id; }) // This provide the id of a node
+ // .links(data[1]) // and this the list of links
31
+ // )
32
.force('charge', d3.forceManyBody())
33
.force('center', d3.forceCenter(width / 2, height / 2))
34
0 commit comments