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

Hide tick labels when an ordinal x or y has a high-cardinality domain. #74

Open
Fil opened this issue Dec 23, 2020 · 2 comments · Fixed by #347 · May be fixed by #301
Open

Hide tick labels when an ordinal x or y has a high-cardinality domain. #74

Fil opened this issue Dec 23, 2020 · 2 comments · Fixed by #347 · May be fixed by #301
Assignees
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Dec 23, 2020

Per #75 (comment) we want to hide the axis if it has much too many ticks.

@Fil Fil changed the title Do something smarter (or at least hide tick labels) when an ordinal x or y has a high-cardinality domain. Hide tick labels when an ordinal x or y has a high-cardinality domain. Dec 28, 2020
@Fil Fil mentioned this issue Dec 30, 2020
@mbostock mbostock added this to the Friends Preview milestone Feb 24, 2021
@mbostock mbostock added the enhancement New feature or request label Feb 24, 2021
@Fil Fil self-assigned this Mar 3, 2021
@mbostock mbostock removed this from the Friends Preview milestone Mar 10, 2021
Fil added a commit that referenced this issue Apr 5, 2021
@mbostock mbostock reopened this Jun 3, 2021
@mbostock
Copy link
Member

mbostock commented Jan 19, 2022

Another thought here is that we could use tickRotate to default to vertical ticks on the x-axis when there are too many ticks.

@mbostock mbostock mentioned this issue Feb 11, 2022
12 tasks
@mbostock
Copy link
Member

mbostock commented Aug 9, 2023

Related #1789 #1790 which addresses this for time series (which is not the only case, but is a common one — and one where you can typically drop labels without losing meaning, unlike ordinal data in general).

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
2 participants