Accepted answer

A d3 geopath takes a geojson object, not a topology/topojson object. To use topojson with a d3 geoPath, you must first convert it back to geojson. You can do this quite easily with topojson.js:

var featureCollection = topojson.feature(Arizona, Arizona.objects.counties)

Of course you can get the features as an array with:

var features = topojson.feature(Arizona, Arizona.objects.counties).features

The above assumes that topology.objects contains a property for counties, you'll have to take a look at your topojson to find out if counties is correct or not (I'm guessing you might be showing counties). If you used a tool such as, the property name may be the same as the original file name.

Related Query

More Query from same tag