d3js (v4) canvas force layout with text on nodes
<p>I have a pretty basic question. I am trying to reproduce <a href="https://bl.ocks.org/mbostock/ad70335eeef6d167bc36fd3c04378048" rel="nofollow">https://bl.ocks.org/mbostock/ad70335eeef6d167bc36fd3c04378048</a> but I simply want to add some text on each node.
I could do this with svg but I would like to use the canvas version for efficient rendering.</p>

<p>Thanks a lot.</p>