We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.10.1
https://visactor.io/vtable/demo/table-type/pivot-analysis-table?version=1.10.1 需要把代码编辑器放在下方 配置如下代码
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_Pivot_data.json') .then(res => res.json()) .then(data => { const option = { frozenColCount:3, records: data, rows: [ { dimensionKey: 'City', title: 'City', headerStyle: { textStick: true }, width: 0 } ], columns: [ { dimensionKey: 'Category', title: 'Category', headerStyle: { textStick: true }, width: 'auto' } ], indicators: [ { indicatorKey: 'Quantity', title: 'Quantity', cellType:'progressbar', width: 'auto', showSort: false, headerStyle: { fontWeight: 'normal' }, style: { padding: [16, 28, 16, 28], color(args) { if (args.dataValue >= 0) return 'black'; return 'red'; } } }, { indicatorKey: 'Sales', title: 'Sales', width: 'auto', showSort: false, headerStyle: { fontWeight: 'normal' }, format: rec => { return '$' + Number(rec).toFixed(2); }, style: { padding: [16, 28, 16, 28], color(args) { if (args.dataValue >= 0) return 'black'; return 'red'; } } }, { indicatorKey: 'Profit', title: 'Profit', width: 'auto', showSort: false, headerStyle: { fontWeight: 'normal' }, format: rec => { return '$' + Number(rec).toFixed(2); }, style: { padding: [16, 28, 16, 28], color(args) { if (args.dataValue >= 0) return 'black'; return 'red'; } } } ], corner: { titleOnDimension: 'row', headerStyle: { textStick: true } }, dataConfig: { sortRules: [ { sortField: 'Category', sortBy: ['Office Supplies', 'Technology', 'Furniture'] } ] }, widthMode: 'standard' }; tableInstance = new VTable.PivotTable(document.getElementById(CONTAINER_ID), option); window['tableInstance'] = tableInstance; });
官网错误截图
这里判断是应该改一下,交叉表冻结列的 location 不一定是 rowHeader,如果初始设置的冻结裂大于 rows 的长度就可能是 body。导致找不到 define 从而报错
正常运行
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix: fix cellLocation in pivot-table #2694
36e2e8a
f3dde64
Rui-Sun
Successfully merging a pull request may close this issue.
Version
1.10.1
Link to Minimal Reproduction
https://visactor.io/vtable/demo/table-type/pivot-analysis-table?version=1.10.1
需要把代码编辑器放在下方
配置如下代码
官网错误截图
Steps to Reproduce
这里判断是应该改一下,交叉表冻结列的 location 不一定是 rowHeader,如果初始设置的冻结裂大于 rows 的长度就可能是 body。导致找不到 define 从而报错
Current Behavior
Expected Behavior
正常运行
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: