d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.48k stars 310 forks source link

Dynamic smoothing interpolation #175

Open DanTsk opened 3 years ago

DanTsk commented 3 years ago

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

image

Fil commented 3 years ago

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.

mbostock commented 3 years ago

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