Axis formatting not carrying over to hover text in shared axes
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
The code below produces subplots with shared Y axes (on the top row), then attempts to apply y axis formatting to display values in percentages. However, when hovering over the data points in the top right plot, I'm still seeing the default format instead of percentages. Wondering if that's intended, as I feel like the default behavior should be to apply the formatting to all the subplots with that shared axis.
from plotly.subplots import make_subplots
import plotly.graph_objects as go
fig = make_subplots(rows=2, cols=2,
specs=[[{}, {}],
[{"colspan": 2}, None]],
subplot_titles=("1", "2", "3"),
shared_yaxes=True,
horizontal_spacing=0.01,
vertical_spacing=0.15)
fig.add_trace(go.Scatter(x=[1,2], y=[0,1]),
row=1, col=1)
fig.add_trace(go.Scatter(x=[1,2], y=[0,1]),
row=2, col=1)
fig.add_trace(go.Scatter(x=[1,2], y=[0,1]),
row=1, col=2)
fig.update_yaxes(tickformat=',.1%')
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Python の再現コードを make_subplots、shared_yaxes、update_yaxes とともに使うことから始め、次に y-axis tickformat が共有サブプロットとホバーラベルにどのように適用されるかを追跡します。共有軸に指定されたパーセント形式が右上のサブプロットのホバー値でも一貫して使用されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100