an example to reproduce the Cannot read property '0' of null in clipCells() error message described in d3-voronoi github issue 16
this example uses d3.verbose.js, which is a copy of d3.js v4.2.3 with some logging added to help trace the error message.
see earlier examples:
the code for the d3-voronoi-scatterplot chart plugin is at https://github.com/micahstubbs/d3-voronoi-scatterplot