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

Encodings that map abstract data to visual representation.

Results 35 d3-scale issues
Sort by recently updated
recently updated
newest added

Currently, _scale_.nice only modifies the scale’s current domain; if you set a new domain, it won’t be niced. However, perhaps _scale_.nice should function more like _scale_.round, and remember the nice...

Rather than rounding up or down to the nearest power of ten, why not the nearest multiple of ten?

What if rather than being closures, scales were object instances and invoked via *scale*.apply(*x*) (as opposed to *scale*(*x*))? Then it would be easier to augment a scale’s prototype, to reuse...

closes #286 closes https://github.com/observablehq/plot/issues/2076

``` 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)