GithubHelp home page GithubHelp logo

Comments (10)

jrweinb avatar jrweinb commented on August 22, 2024 2

@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']

screen shot 2018-05-21 at 5 21 51 pm

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.

rmdort avatar rmdort commented on August 22, 2024 1

@jrweinb Looks really good. Any possibility of having this feature merged?

from quick-pivot.

pat310 avatar pat310 commented on August 22, 2024 1

If a PR is made for it, I'll merge it in

from quick-pivot.

fmq avatar fmq commented on August 22, 2024 1

@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.

pat310 avatar pat310 commented on August 22, 2024

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.

jrweinb avatar jrweinb commented on August 22, 2024

@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.

pat310 avatar pat310 commented on August 22, 2024

from quick-pivot.

rmdort avatar rmdort commented on August 22, 2024

@jrweinb Do you have fork of a working version that supports multiple agg? Care to share?

from quick-pivot.

lovelyelfpop avatar lovelyelfpop commented on August 22, 2024

@jrweinb Could you share your code, please? Thank you

from quick-pivot.

Gydunhn avatar Gydunhn commented on August 22, 2024

@jrweinb @fmq I have to code the same functionality too!, any news ? :)

from quick-pivot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.