-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug when all classes are hidden (#55)
* Docstring and typing fixes * Deprecations and private methods * Fix bug when all classes are interactively hidden Hiding all classes would throw an exception related to mismatched data types during some internal update of the widget state. I traced that back to the `SankeyPlot.plot.data[0].link` update and found it broke if you used the link data from a `go.Sankey` that was initialized with `link_kwargs`. Instead, intitializing with an empty `go.Sankey` seems to solve the issue. That only arises if all classes are hidden, so I just threw in an early return of an empty `go.Sankey` in that case.
- Loading branch information
Showing
4 changed files
with
64 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters