Skip to content

PivotTable aggregate data in JS - (issues 1403) #2228

Open
wujianbin-sh wants to merge 1 commit intoedp963:dev-0.3from
wujianbin-sh:dev-0.3
Open

PivotTable aggregate data in JS - (issues 1403) #2228
wujianbin-sh wants to merge 1 commit intoedp963:dev-0.3from
wujianbin-sh:dev-0.3

Conversation

@wujianbin-sh
Copy link
Copy Markdown

Refer to #1403
For Pivot table: aggregate data in JS (front end).
建议高手优化此处: 当前为了开发简单,利用了Widge配置中的字段设置对话框中的字段描述字段来配置行/列的 聚合 字段。

(如何配置聚合字段) How to config aggregation field:
In Widget Config page,
Open one row/column's setting dialog(字段设置对话框),
in Field Description(字段描述), input a JSON string like:
{"sum":"合计值", "avg": "平均值", "count": "计数", "min": "最小", "min": "最大" }
or simply add one aggregation algorithm:
{"sum":"合计"}

* Create aggregateUtil.ts

For Pivot table: aggregation data in front end.

* support aggregate data in Pivot Table

* Hightlight color aggregate fields' column header

* highlight aggregated field's header color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant