plot icon indicating copy to clipboard operation
plot copied to clipboard

The default tickFormat with a collapsed domain lacks sufficient precision

Open mbostock opened this issue 1 year ago • 2 comments

untitled - 2024-06-09T163705 855

Plot.ruleX([5.5]).plot()

We should probably fallback to formatAuto when there is a collapsed domain.

mbostock avatar Jun 09 '24 23:06 mbostock

Really a D3 bug…

d3.scaleLinear().domain([5.5, 5.5]).tickFormat(7.5)(5.5) // "6"

We don’t handle the tick step being zero well.

mbostock avatar Jun 17 '24 04:06 mbostock

moved to https://github.com/d3/d3-scale/issues/286

Fil avatar Jun 17 '24 12:06 Fil