-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
P2Priority 2Priority 2analysis-modeAnalysis Mode featureAnalysis Mode featureenhancementNew feature or requestNew feature or requestin-progressWork currently in progressWork currently in progressjavascriptPull requests that update javascript codePull requests that update javascript codephase-2Phase 2 roadmapPhase 2 roadmap
Description
Parent Epic
依賴
- [Phase2-2.4] Pivot 樞紐表 Engine #101 (2.4 Pivot Engine)
- 2.6 Pivot API
任務
前端支援 Pivot 模式:選擇 Pivot 維度、渲染動態欄位交叉表格。
實作
修改 framework_analysis.js:
1. UI 新增
- 維度選擇區增加「Pivot 欄位」radio/select(在已勾選維度中選一個作為展開欄位)
- 查詢按鈕旁增加「樞紐模式」toggle
2. renderPivotTable
- 動態表頭:row dimensions + (pivot values × measures)
- 格式化:數值千分位、缺值顯示 "-"
- 表格可能很寬 → 需水平捲動
3. renderChart 擴展
- Pivot 結果適合 Stacked Bar / Grouped Bar
- PivotValues 作為 series
驗證
- Jest 測試:Pivot toggle 渲染
- Jest 測試:動態表頭生成
- Jest 測試:缺值顯示 "-"
複雜度
高
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Priority 2Priority 2analysis-modeAnalysis Mode featureAnalysis Mode featureenhancementNew feature or requestNew feature or requestin-progressWork currently in progressWork currently in progressjavascriptPull requests that update javascript codePull requests that update javascript codephase-2Phase 2 roadmapPhase 2 roadmap