block by rveciana b3726a6aee562c8dce1a655d232a2265

spam.js error with d3-composite-projections

Full Screen

The following code gives

TypeError: ring[0] is undefined

when clicking on the prefactures.

The code is taken from this example

The error was solved using the

topojson.presimplify(d);

function. More information in this block, which is a new Topojson 1.3 function.

index.html

rbush.min.js

spam.min.js

topojson.min.js