Skip to content
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

Fix bug when all classes are hidden #55

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Fix bug when all classes are hidden #55

merged 3 commits into from
Mar 13, 2024

Conversation

aazuspan
Copy link
Owner

The main change is a bug fix for when all classes are manually hidden in the interactive FigureWidget. See 8d5bfbf.

This also contains a number of maintenance updates like making methods private and deprecating the unused exclude arg.

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.
@aazuspan aazuspan added the bug Something isn't working label Mar 13, 2024
@aazuspan aazuspan self-assigned this Mar 13, 2024
@aazuspan aazuspan merged commit 61ef35e into main Mar 13, 2024
6 checks passed
@aazuspan aazuspan deleted the fix-all-hidden branch March 13, 2024 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant