Skip to content

Visibility property on multiple Sankey traces breaks plots #4119

Closed
@parker-norwood

Description

@parker-norwood

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)

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions