Continuous k-nearest neighbour with d3