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

feat: 小计/总计功能,支持按维度分组汇总 #2337 #2338

Merged
merged 51 commits into from
Sep 7, 2023

Conversation

NoobNotN
Copy link
Collaborator

@NoobNotN NoobNotN commented Sep 7, 2023

👀 PR includes

✨ Feature

  • New feature

📝 Description

总计/小计 按配置的维度进行分组汇总,以便进行更精确的汇总数据对比。
所增加的两个 API:

  • S2Options.Totals.Total.totalsDimensionsGroup:string[]
  • S2Options.Totals.Total.subTotalsDimensionsGroup:string[]

🖼️ Screenshot

下图中总计按城市+类别进行分组汇总,小计按子类别进行分组汇总。

  • totalsDimensionsGroup: [’city‘,'type']
  • subTotalsDimensionsGroup: ['sub_type']
    image

🔗 Related issue link

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

JuZe and others added 30 commits August 24, 2023 16:27
…otalsDimGroup

# Conflicts:
#	packages/s2-core/package.json
…otalsDimGroup

# Conflicts:
#	packages/s2-core/scripts/test-live.mjs
…otalsDimGroup

# Conflicts:
#	packages/s2-core/scripts/test-live.mjs
@vercel
Copy link

vercel bot commented Sep 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 7:23am

@lijinke666 lijinke666 merged commit f29c466 into antvis:alpha Sep 7, 2023
8 of 10 checks passed
@lijinke666
Copy link
Member

🎉 This PR is included in version @antv/s2-v1.50.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lijinke666
Copy link
Member

🎉 This PR is included in version @antv/s2-v1.51.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

wjgogogo pushed a commit that referenced this pull request Oct 25, 2023
* feat(Api): 添加 totalDimensionGroup/subTotalDimensionGroup api,以及一些临时的开发函数

* feat(Hierarchy): 总计小计结点下添加Hierarchy

* feat(Render): getMultipleMap 实现,计算总计小计下的布局信息

* feat(Render): 按维度分组的小计总计下表头位置的调整和渲染

* feat(DataSet): 存在维度分组时的汇总值获取

* feat(DataSet): 存在维度分组时的汇总值获取

* feat(DataSet): 存在维度分组时的汇总值获取

* feat: 补充注释

* feat: 单测快照更新,添加isTotalRoot属性

* fix: 有多个 Value 时不允许隐藏度量列

* fix: 有多个 Value 时不允许隐藏度量列

* fix: 删除了一个莫名其妙的函数

* test: 按维度分组汇总能力单测

* docs: 按维度分组汇总能力文档

* test: 更新,多度量指标不允许隐藏指标头

* docs: 图片示例

* test: 更新 snap 数据文件

* chore: 版本号更新

* chore: 版本号更新

* chore: 版本号更新

* chore: 版本号更新

* chore: 版本号更新

* chore: 版本号更新

* chore: 版本号更新

* Merge remote-tracking branch 'origin/Juze_TotalsDimGroup' into Juze_TotalsDimGroup

* test: 更新快照

* chore: 删除开发测试文件

* fix: 汇总指标节点也是汇总节点

* chore: 删除无用文件

* fix: isTotalRoot 替换 isTotals

* fix: isTotalRoot 替换 isTotals

* fix: isTotalRoot 替换 isTotals

---------

Co-authored-by: JuZe <niuwenze.nwz@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants