observablehq / plot

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

Inverted Y axis with zero: true #1985

Closed yurivish closed 7 months ago

yurivish commented 8 months ago

If all values are the same, then the Y axis appears upside-down.

Example: https://observablehq.com/@yurivish/upside-down-y-axis

image

If at least one value differs from the rest, then the Y axis appears right-side-up:

image
mbostock commented 8 months ago

Heh! Good one. We will investigate.

aimerie commented 7 months ago

I'm experiencing this as well. I'm glad to see there is an open bug already! Any idea if this will make the next release?