labelalias should have the option to not affect hover labels or unified hover title

未關閉
#5,328 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python

研究方向

首先在儲存庫中定位對 xaxis.labelalias、yaxis.labelalias、懸停標籤和 unifiedhovertitle 的處理。確定該選項如何將別名限制為座標軸刻度標籤,然後驗證除非被明確覆寫,否則懸停標籤和統一懸停標題會保留原始值;為兩種軸類型和動態資料對映新增或更新測試。

由索引模型根據 Issue 內容生成。

描述

feature P3

Currently, xaxis.labelalias/yaxis.labelalias changes both the axis tick labels and the hover labels / unified hover title. In some use cases, users want to display friendly axis labels but keep the hover title showing the raw data value.

Using tickvals/ticktext is a workaround but requires manually updating tick mappings if the axis data changes dynamically.

The new unifiedhovertitle.text allows formatting of the hover title, but it does not support mapping from x/y values to aliases.

Proposed solution:
Add an option for labelalias to only affect axis ticks. Hover labels and unified hover title should still display the underlying raw value unless explicitly overridden.

主要語言
Python
星號
18.8k
分支
2.8k
平均合併
16 小時 26 分鐘
30 天內合併 PR
21

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

plotly/plotly.py 的其他 Issue

查看 plotly/plotly.py 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。