Comments (10)
@pat310 - I got this working, but I need to do a lot of refactoring and test writing before I would submit a PR. It accepts an array of aggregationDimensions and create column headers for each aggregation under its parent. Below is a rendering of my pivot table, where the input array of aggDimensions is: ['value1', 'value2']
I am also going to work on different types of aggregations for each aggregation dimension once this is complete. I will send another update when I have made more progress
from quick-pivot.
@jrweinb Looks really good. Any possibility of having this feature merged?
from quick-pivot.
If a PR is made for it, I'll merge it in
from quick-pivot.
@jrweinb I know it's old now but could you share your code for this? I have to code the same functionality and it would be great to have your code to Strat from
Thanks!
from quick-pivot.
Most of the business logic is located in src/logic
, so that's likely where you would poke around. Is it possible to do the configurable aggregators using the callback function? You have access to each of the aggregation fields in that callback function so you could configure any aggregations that you wanted
from quick-pivot.
@pat310 Thanks for your input! So I am able to use the callback function to do exactly what you suggest, but the results are hard to understand when rendered without column headers (from a UX perspective). Its definitely a workable solution, but I would prefer to create a feature where you could give an array of aggregation dimensions and a flag to show/hide column headers for each aggregation.
I am currently working on adding the new columns in createColumnHeaders and I will see where that gets me.
from quick-pivot.
from quick-pivot.
@jrweinb Do you have fork of a working version that supports multiple agg? Care to share?
from quick-pivot.
@jrweinb Could you share your code, please? Thank you
from quick-pivot.
@jrweinb @fmq I have to code the same functionality too!, any news ? :)
from quick-pivot.
Related Issues (20)
- Filtering / Sorting
- Pivot should not add to collapsedRows if the row cannot be collapsed HOT 1
- Providing incorrect data types for rowsToPivot and/or colsToPivot throws filter error
- Filtering out all data throw error
- Filtering on value dimensions with string filter values instead of ints HOT 3
- 'Include' filtering with values that are a part of the unique values of that field throws error HOT 4
- Should pivot.getUniqueValues return unique values of the current pivot or original?
- Should filters stack / are they chainable? HOT 2
- Totals functionality HOT 2
- Grouping order changes upon filtering of sub-grouping HOT 1
- TypeError: Object.values is not a function HOT 4
- Filtering out all values returns empty array. Should return remaining unfiltered fields with 0 values.
- Support multiple aggregations HOT 2
- Support row totals HOT 1
- Row and column total header HOT 1
- Preserving order or column and row entries? HOT 3
- Create excel sheet from the pivot data HOT 2
- Comparison functions used are causing unexpected results
- different behaviour between chrome and firefox with same dataset
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 quick-pivot.