-
Notifications
You must be signed in to change notification settings - Fork 186
The axis mark doesn’t support the filter option #1457
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
Labels
bug
Something isn’t working
Comments
Fil
added a commit
that referenced
this issue
Jun 28, 2023
Fil
added a commit
that referenced
this issue
Aug 21, 2023
chaichontat
pushed a commit
to chaichontat/plot
that referenced
this issue
Jan 14, 2024
* Axes and grids now support {filter, sort, reverse} closes observablehq#1457 closes observablehq#1655
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It’d be nice if the filter option worked after the axis initializer so that you can easily filter ticks. For example here I want some ticks to use the left anchor, and others to use the right anchor:
I can do it by passing the tick values to the axis mark constructor, but I think using the filter option would be more intuitive. The reason that it crashes right now is that the default tick values aren’t known until the axis mark’s initializer runs (after all transforms). So, the axis mark would probably need to pull out the filter option and run it after the built-in initializer.
The text was updated successfully, but these errors were encountered: