plotly / plotly/plotly.js

Sankey Diagram : show node labels on the right side of the node

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

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

feature P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

Hi,

I am using go.Sankey and can't find a way to display node labels on the right side of the node. I might have missed something but I came accross the entire documentation.

Situation today:
labels are always on the left side of the node

Wished situation :
labels can be on the right or on the left side of the node, depending on the set up. COuld be usefull to show labels outside of nodes (ie : on the right side of the node for the first layer and on the right side of the node for the last layers).

I am currently using go.Sankey in dash using this code :
sankey_data = go.Sankey(
arrangement="snap",
node=dict(
pad=pad_value,
thickness=20,
label=SankeyChart.get_node_labels_list(),
color=SankeyChart.get_node_color_list(),
x=SankeyChart.get_node_x_list(),
y=SankeyChart.get_node_y_list(),
# align="left",
line=dict(color="black", width=0.5),
),
link=dict(
source=SankeyChart.get_links_source_list(),
target=SankeyChart.get_links_target_list(),
value=SankeyChart.get_links_value_list(),
color=SankeyChart.get_links_color_list(),
),
)

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

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

はじめの一歩

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

調査の方向性

この issue では Dash 構成で go.Sankey を使用しています。まず Sankey trace と、そのノードラベルのレンダリングのエントリーポイントを見つけます。左または右への配置(ノード外のラベルを含む)をサポートする設定を追加し、最初と最後のレイヤーの両方の配置を検証します。

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

評価

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

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

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