What is the proper way to use D3's projection.stream()?
问题 So I'm experimenting a bit with D3's geo stream API , and things feel a bit hazy. I've been reading through the documentation here: https://github.com/mbostock/d3/wiki/Geo-Streams One point of confusion I have is the proper implementation of stream transforms. Let's say I create one: //a stream transform that applies a simple translate [20,5]: var transform = d3.geo.transform({ point:function(){this.stream.point(x+20,y+5)} }) Per the documentation, this.stream references the "wrapped stream."