Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control axis z-order? #926

Closed
mbostock opened this issue Jun 8, 2022 · 2 comments · Fixed by #1197
Closed

Control axis z-order? #926

mbostock opened this issue Jun 8, 2022 · 2 comments · Fixed by #1197
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Jun 8, 2022

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

image

@mbostock mbostock added the enhancement New feature or request label Jun 8, 2022
@Fil
Copy link
Contributor

Fil commented Jun 9, 2022

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?

@mbostock
Copy link
Member Author

mbostock commented Jun 9, 2022

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

@Fil Fil mentioned this issue Jul 18, 2022
@mbostock mbostock mentioned this issue Dec 23, 2022
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants