Skip to content

toggling visibility of most legend groups fails in editable charts as of plotly 2.22.0 #6638

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

Closed
michaelbabyn opened this issue Jun 9, 2023 · 1 comment · Fixed by #6639
Closed
Labels
bug something broken regression this used to work

Comments

@michaelbabyn
Copy link

It looks like plotly 2.22.0 introduced a regression in the click behaviour of legend groups in editable charts. Specifically, only the first one seems to toggle the visibility properly. Clicking on other groups causes this error in the browser console:

Uncaught TypeError: Cannot read properties of undefined (reading '0')
  at k (plotly-2.22.0.min.js:8:155632)
  at Object.clickFn (plotly-2.22.0.min.js:8:155432)
  at HTMLDocument.T (plotly-2.22.0.min.js:8:65592)

codepens: clicking on the second legend group to make those traces invisible fails with Plotly>=2.22.0 but works with plotly <2.22.0

@archmoj archmoj added bug something broken regression this used to work labels Jun 9, 2023
@archmoj
Copy link
Contributor

archmoj commented Jun 9, 2023

Thanks @michaelbabyn for the report and codepens too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken regression this used to work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants