plotly.graph_objects.Sankey docs incorrectly indicates support for legends
オープン
@LiamConnors がすでに取り組んでいます。
2024年7月8日 から。
documentation
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
I'm trying to display a legend with a Sankey diagram. I gather this is intended to be possible as the docs state this for the name param for plotly.graph_objects.Sankey: Sets the trace name. The trace name appear as the legend item and on hover.
I can't see the legend appearing however, nor the trace name appearing on hover. The following example demonstrates the issue for me:
import plotly.graph_objects as go
go.Figure({
'data': [
{'link': {'source': [0, 0, 0, 1, 1, 1, 2, 2],
'target': [3, 4, 5, 3, 4, 5, 3, 5],
'value': [10, 20, 20, 10, 5, 5, 20, 10]},
'name': 'Trace 1',
'node': {'label': ["A", "B", "C", "D", "E", "F"]},
'type': 'sankey'
},
],
'layout': {'showlegend': True}
})
I'm using Plotly 4.8.1.
I also came across this Stack Overflow question that makes me wonder if this person is experiencing the same issue as me.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。