c7b7ceeb8de34f77fdf01d890bc99619d68b067d
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
實戰在 188 prod 抓到的問題:N=1 時 title/legend/data marker 全擠在頂部。
修補:
- 加 `sparse = n_pts <= 2` 旗標,N<=2 時:
* 略過平均水平線(單點下無意義且標籤撞 title)
* marker 加大(5 → 7)讓單點更顯眼
* 中央加「⚠ 期間僅 N 個資料點」提示框(圓角米底+焦糖橘邊)
* legend 改 lower right inset(避開 title)
* x 軸 set_xlim 加邊距避免 marker 貼牆
- 正常 N>=3:
* legend 從 bbox_to_anchor 上方移到 axes 內 upper right
(frameon=True 米底邊框,避免與 title 撞)
* xticklabel 在 N>14 時 rotation=45 ha=right(避免 30 點擠成一團)
* title pad 加大為 18
bump 版本:
- daily v3.0.1 → v3.0.2
- weekly v3.0.1 → v3.0.2
- monthly v3.1.1 → v3.1.2
本機驗證:
- N=1:「資料不足」提示框正確顯示,無重疊
- N=30:30 個 xticklabel 旋轉 45° 清楚分離,legend 右上 inset 不撞 title
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
EwoooC — 商品看板 + 業績報表 + AI KM (Flask + pgvector, Docker Compose on 188)
Languages
PostScript
59.7%
Python
30.9%
HTML
4.2%
CSS
2.1%
JavaScript
1.9%
Other
1.1%