d3-geo icon indicating copy to clipboard operation
d3-geo copied to clipboard

geoPath.curve ?

Open Fil opened this issue 5 years ago • 2 comments

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.

Fil avatar May 21 '20 12:05 Fil

It would also make the chart at https://observablehq.com/@d3/contourdensity-linear-binning much nicer

linear curve

image

curveBasisClosed

image

Fil avatar Jun 06 '21 13:06 Fil

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.

Fil avatar Dec 17 '22 12:12 Fil