Reputation: 128
Is there a possibility to make edges clickable? (In order to show more information about the edges) ![Graph][1]
Upvotes: 0
Views: 1175
Reputation: 13681
When creating your lines:
//...
.append("line")
//...
just add an on click listener like this:
//...
.append("line")
.on("click", function(){
// code to run on click
})
//...
Upvotes: 2