Visual bug for nodes with fixed position in Sankey plot
未關閉
還沒有人認領這個 Issue。
bug
P3
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
There seems to be a visual bug for nodes with fixed positions that makes it hard to differentiate between incomming and outgoing links.
It would be great if this would be solves the same way it is solved with loops. In my example the left side that has no loop therefore would likely be read as a link from node B to A. The right side however has a loop and solves the issue by implementing a visual that shows clearly that the link from node D to C is outgoing at D terefore on the right side and incomming at C therefore on the left side.
fig = go.Figure(data=[go.Sankey(
arrangement="snap",
node=dict(
label=["A", "B", "C", "D", "E", "F", "G", "H"],
x=[0.3, 0.4, 0.6, 0.7],
y=[0.5, 0.5, 0.5, 0.5]
),
link=dict(
source=[1, 2, 3],
target=[0, 3, 2],
value=[1, 1, 1]
))])
fig.show()

貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先執行提供的 Python Sankey 重現,並將固定位置的連結與範例中顯示的迴圈渲染進行比較。追蹤 Sankey 渲染進入點,並確認連結方向在每個節點上如何傳遞;完成的標準是:在所回報的版面配置中,傳入連結與傳出連結能夠以視覺方式區分,同時不造成迴圈渲染回歸。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- plotly, python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100