plot icon indicating copy to clipboard operation
plot copied to clipboard

Control axis z-order?

Open mbostock opened this issue 3 years ago • 2 comments

E.g., below the hexbins are drawn on top of the axis, but I’d rather the axis be drawn on top

image

mbostock avatar Jun 08 '22 18:06 mbostock

Generally we'd want to draw areas below the axes, and lines and points above them, so in a sense it feels we'll need more than a binary choice (of top vs bottom).

What if we could control the z-order of each mark individually (with a default of 1), and axes would be set to 0?

Fil avatar Jun 09 '22 13:06 Fil

There are also some cases where you might want to interleave instances of marks, but that’s probably overkill for now.

mbostock avatar Jun 09 '22 15:06 mbostock