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 hovering over Sankey node only fully highlights first trace #6799

Merged
merged 8 commits into from
Dec 15, 2023
Merged

Fix hovering over Sankey node only fully highlights first trace #6799

merged 8 commits into from
Dec 15, 2023

Conversation

DominicWuest
Copy link
Contributor

Fixes #6328.

The issue was that only the label of the first link was considered when recursively highlighting traces.

@archmoj archmoj added bug something broken community community contribution status: reviewable labels Dec 5, 2023
src/traces/sankey/plot.js Outdated Show resolved Hide resolved
src/traces/sankey/plot.js Outdated Show resolved Hide resolved
@DominicWuest
Copy link
Contributor Author

Incorporated your suggestions @archmoj! :)

@archmoj
Copy link
Contributor

archmoj commented Dec 14, 2023

Please add a test case in test/jasmine/tests/sankey_test.js in the hover interaction block and this PR should be ready to go.
You can run

 npm run test-jasmine sankey

To run just the sankey test.
Thank you!

draftlogs/6799_fix.md Outdated Show resolved Hide resolved
@DominicWuest
Copy link
Contributor Author

Hmm interesting, the tests pass on my end... But only when the browser is in full-screen. I hover over the right-most node, maybe that is not visible or something?
I'll hover over the left-most node instead then...

DominicWuest and others added 2 commits December 15, 2023 16:21
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
@DominicWuest
Copy link
Contributor Author

Should work now! :)

@archmoj
Copy link
Contributor

archmoj commented Dec 15, 2023

Great PR. 🏆
💃

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

Successfully merging this pull request may close these issues.

Node hover effect not working correctly in Sankey plots
2 participants