observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.16k stars 171 forks source link

expose {number,time,utc}Interval #2075

Closed mbostock closed 1 month ago

mbostock commented 1 month ago

Fixes #1994.

Fil commented 1 month ago

The negative intervals encoding fractional values is something that might be surprising—but I understand if we want to gloss over that.

mbostock commented 1 month ago

The negative intervals encoding fractional values is something that might be surprising—but I understand if we want to gloss over that.

It took me a while to interpret this statement but you’re referring to Plot.numberInterval(-2) being the more precise version of Plot.numberInterval(1/2)?

Fil commented 1 month ago

yes!

mbostock commented 1 month ago

Okay, added more documentation, please approve.