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

Column Pivoting #2

Closed
tannerlinsley opened this issue Oct 24, 2016 · 2 comments
Closed

Column Pivoting #2

tannerlinsley opened this issue Oct 24, 2016 · 2 comments

Comments

@tannerlinsley
Copy link
Collaborator

Similar to #1, Pivoting on columns would be fairly straight forward to implement after #1 is finished. It might even make sense to develop both at the same time. Let's further discuss the requirements for this feature here.

@tannerlinsley
Copy link
Collaborator Author

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.

@jchenjc
Copy link

jchenjc commented Mar 22, 2017

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!

gary-menzel added a commit to frankolson/react-table that referenced this issue Nov 23, 2017
chore: Update the devDependencies for the linter
techniqs added a commit to techniqs/react-table that referenced this issue Apr 5, 2022
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

No branches or pull requests

2 participants