-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
display only category label on axis for multicategory plots #3884
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
Comments
I was able to do it by setting the tick labels to be different length empty strings and then rotating ticklabels 0 degrees. |
Hi @aamster Thanks for writing in! Can I ask why you're trying to plot your data on a multicategory axis if you only want to see one category level? |
We could certainly add an attribute named e.g. Thanks again! |
@etpinard I essentially wanted a single category label to span multiple ticks, since there are too many individual tick labels to display. I can then hover over each individual bar to see what that bar represents. Here's a truncated finished version: |
Thanks for replying! Have you tried using |
@etpinard that's interesting but you still have to set empty string to all but one of |
@aamster right by codepen was meant to be a workaround. I agree something is missing from our current multicategory implementation. Maybe a new boolean (e.g. I'll tag your ticket under |
please add this feature |
I would like to display only the category, and not the specific tick labels on the axis. For example, in this example https://codepen.io/plotly/pen/bOByWR I would like to only display 'SF Zoo' and 'LA Zoo'. I've tried several hacks such as setting tick labels to empty string, but in my case the plot still leaves room for the tick labels and it looks weird. See what I mean:

Is there a way to accomplish this? I think I might have to use the idea of subcategory axis instead.
The text was updated successfully, but these errors were encountered: