質問

I'm trying to copy this example http://bl.ocks.org/mbostock/3711652 - code and javascript libraries - locally. I'm having issues pointing to a local version of the the d3-geo-projections library (d3.geo.projection.v0.min.js).

On Chrome's console, I get the following error: Uncaught TypeError: Object # has no method 'aitoff'

The error above doesn't happen if I point to the d3.geo.projection.v0.min.js version hosted at d3js.org.

Any thoughts?

役に立ちましたか?

解決

The problem is that I was accessing http://d3js.org/d3.geo.projection.v0.min.js directly on my browser, and what I was copying was already broken. After I opened my console and used the "wget" command, the correct content was copied and the example started working.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top