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

Dynamic smoothing interpolation

Open DanTsk opened this issue 3 years ago • 2 comments

Hello. Is it any way to dynamically set curve smoothing like on the screenshot below? Really need such functionality.

image

DanTsk avatar Mar 10 '21 22:03 DanTsk

This looks like it would be a mix of curveStep and curveCardinal? I'm afraid you'll probably have to write your own custom curve.

Fil avatar Mar 11 '21 15:03 Fil

I think this is asking for line simplification, which is not provided by d3-shape, but is available for example in topojson.

https://bl.ocks.org/mbostock/5732029

mbostock avatar Mar 11 '21 17:03 mbostock