d3-geo
d3-geo copied to clipboard
geoPath.curve ?
It would be great to be able to specify geoPath.curve(d3.curveBasis) to make sketchy maps https://observablehq.com/@d3/context-to-curve
A difficulty might be to find how to automatically switch to curveBasisClosed for rings, so maybe the signature would have to be geoPath.curve(d3.curveBasis, d3.curveBasisClosed); it's a bit ugly.
It would also make the chart at https://observablehq.com/@d3/contourdensity-linear-binning much nicer
linear curve

curveBasisClosed

For reference, this is addressed in https://observablehq.com/@d3/context-to-curve You still need to adjust the curve to the type of shape (closed or not) that you are drawing.