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

Rect mark doesn't work with `scale: { type: "log" }` #2058

Closed MaxwellBo closed 3 months ago

MaxwellBo commented 3 months ago
image

works, but log doesn't

image

Curiously all other scale types work including symlog

image
mbostock commented 3 months ago

The rect mark does work with a log scale. What doesn’t work is trying to encode the value zero with a log scale, which lives at infinity.