Skip to content

Commit

Permalink
update f_force
Browse files Browse the repository at this point in the history
  • Loading branch information
capan committed Nov 29, 2018
1 parent 446d0e9 commit 7f5fef9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions f_force.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ var node = svg.append("g")
node.on("mouseover", function (d) {
var result;
document.getElementById("nameText").innerHTML = d.name.split(' ')[0];
result = graph.links.filter(word => word.source === d.index);
console.log(result);
// result = graph.links.filter(word => word.source === d.index);
console.log(graph.links.filter(word => word.source.index === String(d.index)));
console.log(typeof(String(d.index)));
});

simulation
Expand Down

0 comments on commit 7f5fef9

Please sign in to comment.