-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
legend_groupclick="toggleitem" not working #3488
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
@archmoj Pinging you since you merged this feature into plotly.js and might know. Could it be that this attribute is simply not passed from |
This works for me... Can you tell us a bit about the environment in which you're running |
(for reference, I'm running this in JupyterLab 3, and it's working there, because |
I am indeed using VS Code. I guess I can just cross post this issue to The odd thing is, they no longer specify the plotly.js version in |
Exporting the figure to HTML and opening in the browser makes |
Please do let the VSCode folks know! We submit PRs to their repos but I'm not sure we're submitting them to the right places or when/where the updated JS versions are supposed to show up. We need VSCode users like you to let their team know there are issues :) Yes, exporting to HTML almost always gets you the version of Plotly.js that you're expecting, and yes, clicking on the group title doesn't toggle the group today. We'd be happy to accept a PR that does this, and there's an issue open requesting it, it's just not something the plotly team has prioritized at the moment. |
Thanks! |
Adding
fig.update_layout(legend_groupclick="toggleitem")
(as documented) to the grouped legend items example does not affect legend click behavior. With or without setting to"toggleitem"
, the whole group is toggled when clicking any item in the legend. Usingplotly==5.4.0
.The text was updated successfully, but these errors were encountered: