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