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

grouping and folding feature #131

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

jjagielka
Copy link

Grouping (subtotals) of data by dimension and the possibility to fold/unfold groups.

Minimal changes in:

  • Utilities.js (PivotData class) - grouping in processRecord function and some tweaks to sorting
  • TableRenderer.jsx - display in groups, folding capability (~10% of code changed in TableRenderer.render function)
  • App.jsx - grouping props exposed as checkboxes

Demo: https://jjagielka.github.io/react-pivottable-demo/

@newt0311
Copy link

I was about to (finally!) look at my PR for subtotals again but then I saw this. It's great!

@nicolaskruchten any preference between this PR and mine? I would like to get subtotals into react-pivottable but not picky on how...

Thanks.

@baur
Copy link

baur commented Jul 13, 2022

Hi, @nicolaskruchten
Please, merge this cool PR!!!

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

Successfully merging this pull request may close these issues.

3 participants