plotly / plotly/plotly.R

'hovertemplate' not passable as an attribute into a dataframe in a sankey diagram's nodes/links

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

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

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明


The 'hovertemplate' attribute is not working when passed into the 'nodes' or 'links' dataframes in a sankey diagram. "Node" and "link" are arguments for the sankey's links and nodes and are of type dataframe which contain arbitrary data for the links and nodes, as well as attributes of links and nodes (see plotly::schema() for a list of all available attributes for each trace). Reprex here is unnecessary since my question is why 'hovertemplate' cannot be passed into the 'nodes' or 'links' as attributes when other attributes such as 'color' and 'hoverinfo' are passable? Is there any workaround to this?



fig <- plot_ly(
      type = "sankey",
      orientation = "h",
      node = nodes, # dataframe which includes sankey trace data and attributes
      link = links, # dataframe which includes sankey trace data and attributes
      valueformat = ".0f")

fig 

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

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

はじめの一歩

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

調査の方向性

実装ファイルもテストも指定されていません。まず plotly::schema() を調べて Sankey のノード属性とリンク属性を確認し、次にノードとリンクのデータフレームがどのように変換されるかを追跡してください。完了条件は、hovertemplate が color および hoverinfo と異なる理由を特定し、確認済みの回避策またはサポートされている動作を文書化することです。

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

評価

技術スタック
plotly, r
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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