I am handling a large dataset to render for D3 force-layout, but realised that the performance suffers a lot using SVG. Read that rendering in canvas is much better, so am trying to understand it now.
One of the functions I need to code for is the addition of new nodes & links in the existing graph (without a refresh), as well as new links. Is there any hack that can be done to do this? Since canvas doesn't have DOM structure like SVG for me to select and update...
Am referencing to this canvas force-layout create using d3v4. https://bl.ocks.org/mbostock/ad70335eeef6d167bc36fd3c04378048
Thanks!