plotly / plotly/plotly.py

Visual bug for nodes with fixed position in Sankey plot

オープン
#4,192 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
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()

image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された Python Sankey の再現コードを実行し、例に示されているループ描画と固定位置のリンクを比較します。Sankey 描画のエントリーポイントを追跡し、各ノードでリンクの方向がどのように伝達されるかを特定します。完了の条件は、ループ描画を後退させることなく、報告されたレイアウトで入力リンクと出力リンクを視覚的に区別できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
plotly, python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。