Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: dev-0.3
Choose a base branch
from

Conversation

wujianbin-sh
Copy link

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.

None yet

1 participant