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

geoPath.width ?

Open Fil opened this issue 5 years ago • 3 comments

This is a long shot, but it'd be nice to have a way to make a geoPath to draw a "line" with a variable width; for example when accumulating pencil data on a tablet, we might have lines as lists of triplets {x,y,z} where z is the pressure, or a combination of pressure and twist.

Fil avatar May 21 '20 13:05 Fil

Would be useful @ https://observablehq.com/@fil/pointer-events-svg

Fil avatar May 21 '20 13:05 Fil

See also https://github.com/d3/d3-chord/issues/13#issuecomment-557300322 & https://pomax.github.io/bezierinfo/#graduatedoffset

Fil avatar May 22 '20 12:05 Fil

Plot.line supports this now.

mbostock avatar Dec 20 '22 22:12 mbostock