-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 * test: 更新 React 包快照 * fix: 修复树状模式下总计节点的指标节点没有被格式化数据 * refactor: 修改代码风格和编码规范 * test: 修改代码风格和编码规范 * test: 修改代码风格和编码规范 * test: 修改代码风格和编码规范 * chore: 更改 interface 命名规范 --------- Co-authored-by: JuZe <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: Jinke Li <[email protected]>
- Loading branch information
1 parent
12f2d02
commit 20e608f
Showing
40 changed files
with
1,410 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
packages/s2-core/__tests__/unit/data-set/__snapshots__/pivot-data-set-total-spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 1`] = ` | ||
Array [ | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 7789, | ||
"city": "杭州市", | ||
"number": 7789, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2367, | ||
"city": "绍兴市", | ||
"number": 2367, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 3877, | ||
"city": "宁波市", | ||
"number": 3877, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 4342, | ||
"city": "舟山市", | ||
"number": 4342, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 2`] = `Array []`; | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 3`] = ` | ||
Array [ | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 7789, | ||
"city": "杭州市", | ||
"number": 7789, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2367, | ||
"city": "绍兴市", | ||
"number": 2367, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 3877, | ||
"city": "宁波市", | ||
"number": 3877, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 4342, | ||
"city": "舟山市", | ||
"number": 4342, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1723, | ||
"city": "成都市", | ||
"number": 1723, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1822, | ||
"city": "绵阳市", | ||
"number": 1822, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1943, | ||
"city": "南充市", | ||
"number": 1943, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2330, | ||
"city": "乐山市", | ||
"number": 2330, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
] | ||
`; |
Oops, something went wrong.
20e608f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
antvis-s2 – ./
antvis-s2-antv-s2.vercel.app
antvis-s2-git-master-antv-s2.vercel.app
antvis-s2.vercel.app