Customdata in texttemplate could not be found in heatmap
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
For a heatmap chart I want to create a hyperlink, which is provided in the customdata. For some reason it looks like the customdata fields is not accessible from the texttemplate field. Executing the sample code below with browser debug mode shows that customdata is not found:
import plotly.graph_objects as go
labels = ["a", "b", "c"]
z = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
customdata = [["http://google.com", "http://google.com", "http://google.com"], ["http://google.com", "http://google.com", "http://google.com"], ["http://google.com", "http://google.com", "http://google.com"]]
fig = go.Figure(data=go.Heatmap(x=labels, y=labels,
z=z,
customdata=customdata,
texttemplate="""<a href="%{customdata}">%{z}</a>""",
hovertemplate='%{customdata}<extra></extra>',
textfont={"size": 20}))
fig.show()
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Python heatmap の例から始め、Heatmap customdata が texttemplate にどのように渡されるかを追跡し、動作している hovertemplate の挙動と比較します。customdata URL を使ってハイパーリンクをレンダリングし、既存の hover テキストが引き続き正しく表示されることを確認して fix を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- plotly, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100