Error in line plot when including text attribute related to floating point representation.
未關閉
還沒有人認領這個 Issue。
bug
P3
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
Plotly Version: v2.12.1
Step to reproduce:
import plotly.express as px
fig = px.line(df[df["country"] == "India"], x="year", y="pop", title="Population In India", text="lifeExp")
fig.show()
LifeExp has only 3 decimal places:
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用提供的 px.line 範例在 Plotly v2.12.1 中重現此問題,篩選 India,並將 lifeExp 作為 text 傳入。檢查折線圖如何處理 text 屬性和浮點數值;當顯示的 lifeExp 文字保留來源資料中所示的三位小數表示時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100