D3.js uses a PR Quadtree, which subdivides space in four congruent block.
This is a small example of a point quadtree, where space is divised into four quadrants centered on the inserted points
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js