d3 / d3-scale

Encodings that map abstract data to visual representation.
https://d3js.org/d3-scale
ISC License
1.59k stars 286 forks source link

The default tickFormat with a collapsed domain lacks sufficient precision #286

Open Fil opened 5 months ago

Fil commented 5 months ago
d3.scaleLinear().domain([5.5, 5.5]).tickFormat(7.5)(5.5) // "6"

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

(originally https://github.com/observablehq/plot/issues/2076#issuecomment-2172184218)