d3 / d3-shape

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

Configurable precision for generated path data #204

Closed mbostock closed 1 year ago

mbostock commented 1 year ago

With d3.pathFixed https://github.com/d3/d3-path/pull/12, we now have a way to limit the precision of the strings generated by D3 shapes. We should provide a way to control this behavior (e.g., line.digits? maximumFractionDigits? precision?), and it should probably default to three decimal digits.

mbostock commented 1 year ago

Fixed in #205.