-
Notifications
You must be signed in to change notification settings - Fork 629
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
Discrete axis fails to remove "interior" categories in response to filter interactions #689
Comments
@cpsievert I know you are quite busy but just wanted to follow up on this. This is driving me crazy as this works on plot.ly webpage and doesn't work when I try it. |
This should work with |
Actually, due to the way BTW, I've made a feature request to plotly.js to see if we can have "dynamic ticks" even when |
I ran today into the same issue and am wondering whether this is sorted or there is a work around to have the unused categories removed/xaxis refreshed? |
I closed issue #1709 since it is a duplicate of #689 (thanks @rainer-rq-koelle for pointing that out) and linked this thread to my SO question. |
Hey @dgdi is there a droplevels() equivalent in pandas for this purpose? I'm having the same issue and not sure where to fit that in for testing. Thanks. |
My SO question got an answer solving this issue. All that is needed is to set categoryorder = "trace" in the layout of the axis you are interested in.
|
I have the same issue with multicategory yaxis from python. setting categoryorder doen't do the trick for me...
|
I am using the example from the plotly page to generate a bar plot. I am also using
plotly devel version 4.3.4
. Here is the code:On the plot.ly page, when I click on one of the bars in the middle (blue/green) the plot gets autoscaled and the placeholders disappear. But when I generate the plot using the code in R and click on the middle bars, the placeholders are still there.
Here I have clicked
A
to remove that bar but as you can see the placeholder remains:When I click on the bars at either end, the plot auto-adjusts and placeholders are removed. How can I remove the placeholders when clicking one of the middle bars?
Thanks!
The text was updated successfully, but these errors were encountered: