score:1

Accepted answer

This will give you the full data associated with the node on click.

onclick: function(d) {
  console.log(jsonfile[d.index]);//will console. the clicked node's data.
}

Working code here


Related Query

More Query from same tag