Skip to content

Visibility property on multiple Sankey traces breaks plots #4119

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
parker-norwood opened this issue Aug 12, 2019 · 1 comment · Fixed by #4123
Closed

Visibility property on multiple Sankey traces breaks plots #4119

parker-norwood opened this issue Aug 12, 2019 · 1 comment · Fixed by #4123
Assignees
Labels
bug something broken

Comments

@parker-norwood
Copy link

Same console error shown in plotly/plotly.js#3798

Was attempting to use the visibility flag dropdown shown here. When I stumbled upon the above linked issue with the same error message that I was getting.

If both of the visible flags are true, it works fine. If multiple traces exist where at least one visible flag is false, the below error is output.

JSFiddle with reproduction of bug.

Error output in console matching linked issue:

Uncaught TypeError: Cannot read property 'groups' of undefined 
    at plot (plotly-latest.js:180349)
    at Object.exports.plot (plotly-latest.js:179746)
    at exports.drawData (plotly-latest.js:118147)
    at Object.lib.syncOrAsync (plotly-latest.js:107400)
    at Object.plot (plotly-latest.js:112750)
    at Object.newPlot (plotly-latest.js:113020)
    at window.onload ((index):66)
@etpinard
Copy link
Contributor

Thanks very much for the report!

@etpinard etpinard added the bug something broken label Aug 12, 2019
@antoinerg antoinerg self-assigned this Aug 13, 2019
antoinerg added a commit that referenced this issue Aug 13, 2019
This is meant to 🔒 down fix for issue #4119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants