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: Improvements to avoid distortions in sankey diagram links loops #7272

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

giuseppe-straziota
Copy link
Contributor

… Issue #7132
I tried to avoid distortion when the source and target of a link were moved. In the first place, I found a condition ("isSourceBeforeTarget") to use to know if a target block is before the source block or not, I used this condition to draw the path in two different ways. I used another condition ("isPathOverlapped") to improve the draw of the path when the two blocks are so close to having almost the whole path overlapped, this avoids, in part, some distortions and defines another way to draw the path in this particular condition. All the changes are done in the section of the path which is dedicated to drawing the arc both inner and outer

@gvwilson gvwilson added feature something new community community contribution P2 considered for next cycle labels Nov 18, 2024
@gvwilson gvwilson self-assigned this Nov 21, 2024
@gvwilson gvwilson added the cs customer success label Nov 21, 2024
draftlogs/7272_fix.md Outdated Show resolved Hide resolved
Copy link
Contributor

@archmoj archmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent PR! 💪 🏆
💃

@archmoj archmoj merged commit 6faeb7d into plotly:master Dec 16, 2024
1 check passed
@giuseppe-straziota giuseppe-straziota deleted the dev-plotly-branch branch December 16, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution cs customer success feature something new P2 considered for next cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants