Comments (2)
Hi @tannerlinsley,
I'm trying to do row pivoting (expand when clicking on the row groups), and also column pivoting (expand when clicking on column groups); so that I can perform rollup operations on both rows and columns with the data. Since column pivoting is not supported now, I tried doing nested column header groups; but looks like that's also not supported, I can have only 2 levels of column.
For example, this doesn't work:
const columns = [{ header: 'Favorites', headerClassName: 'my-favorites-column-header-group' columns: [{ header: 'Color', columns: [{ header: 'Red', accessor: 'blah.red' }, { header: 'Blue', accessor: 'blah.blue' }] }, ...]
Now I don't know what else I can try, do you have any suggestion? Thank you!
from table.
Looking at this now, I think defining the columns should still take precedent here. This would involve doing a lot of automagical data organization with minimal configuration, which at the moment doesn't seems to be the same process for everyone.
If anyone is interested in pivoting rows into columns, I would suggest performing a simple lodash groupBy + aggregation for each pivotGroup and building columns manually.
Closing for now.
from table.
Related Issues (20)
- `getTopRows()` and `getBottomRows()` Not Referentially Stable Between Renders
- Calling `row.getParentRow()` with expanded, filtered row models and initial filtering value throws an error HOT 1
- Table sorting is not working when drag and drop of columns is used HOT 1
- Custom sortingFn not being run when row key is undefined
- [Angular] In the example, column sorting does not work. HOT 2
- Global filter only works with string and number types
- To use @Tanstack Table/vue-table, you must import the core package, but the documentation does not specify this HOT 2
- Sub components are overlapped with successive rows HOT 1
- Bug Report: cell.isGrouped Always Returns false Despite enableGrouping Being true (REACT) HOT 2
- The left position of pinned columns in the sticky table is calculated incorrectly HOT 2
- cell only displays one line HOT 1
- When using virtual rendering and column drag-and-drop sorting simultaneously, they don't work well together HOT 2
- onPaginationChange when set to undefined doesn't fallback to using default pagination HOT 1
- Failed to monitor data changes, resulting in page turning without re-rendering. HOT 2
- Table using insane amount of memory even with virtualisation when scrolling HOT 2
- Issue with getIsSomeRowsSelected when using grouping
- [vue table] support for reactivity in Vue-adapter in version 8.20 broke reactive for the old getter `get data()` style HOT 1
- Use of svelte/internal in Svelte 5 HOT 6
- Page sizes that are multiple of 50 don't render new data BUT pagination works
- when i useing thead Grouping. only set subHeader enableColumnFilter work, parent Column didn't work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.