plotly / plotly/plotly.js

overlapped links become inaccessible in Sankey plot

Open
#7,042 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Hi,
I figured out that in Sankey diagram, if the links overlap, sometimes certain links go in the background and become inaccessible. Here is my codepen for the reported case: (https://codepen.io/mateo-forjan/pen/NWZWyPd).

Trying to access link info for links 1->4 and 2->4 is impossible from the inside of the link 3->4 because it seems those are in the background of the mentioned link. Sometimes, there can be a situation where one link from the background can be accessed and another one cannot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the overlapping-link case from the linked CodePen in a Sankey plot. Then trace the Sankey link interaction or hit-testing entry point and determine how links 1→4, 2→4, and 3→4 are layered. Done means every overlapping link can be accessed and its information inspected; the issue names no repository file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.