Giter Club home page Giter Club logo

Comments (9)

nicolaskruchten avatar nicolaskruchten commented on June 23, 2024

This is a great idea. I see two ways of doing it, both of which leverage the jQuery data() system.

One option would be for the Table renderer to attach to each td element a filtering function, which you could use to iterate over the data-set to figure out which records match the cell. This may use less memory but be slower.

Another option would be the same idea except that we would attach an array of records to each td. This may use more memory but be faster.

In either case, you could attach a click handler which could access the matching records and display them however made sense. What do you think?

from pivottable.

samuelleach avatar samuelleach commented on June 23, 2024

For the second approach, is it not sufficient to just attach the indices of the records in a given pivot table entry? Then on click, the desired records are accessed and output.

from pivottable.

u307911 avatar u307911 commented on June 23, 2024

1- Is there any documentation that shows what the code should look like in a Sharepoint Content Editor Web Part?
That web part is expecting html,js,css or all. There appears a number of code modules but it was not clear what piece of code brings them altogether to display the pivot.
2- What mechanism can be used to refresh the connection to the CSV file?
Thanks

from pivottable.

nicolaskruchten avatar nicolaskruchten commented on June 23, 2024

Hi,

  1. I don't really know much about Sharepoint so I won't really be able to help you with that, sorry...

  2. There is no real connection to a CSV file to refresh... The input formats are documented here: https://github.com/nicolaskruchten/pivottable/wiki/Input-Formats

from pivottable.

nicolaskruchten avatar nicolaskruchten commented on June 23, 2024

Pull request #141 (which won't be merged) shows how someone patched this library for this purpose

from pivottable.

AbdulGool avatar AbdulGool commented on June 23, 2024

@samuelleach that second approach you just mentioned is actually really just the 1st option suggested by @nicolaskruchten. Unless you were to sort your data set and use a searching algorithm (binary search is probably the only feasible algorithm if ID's are used), i doubt there would be any convenience or performance increases in using the indexes(Id's is the way you would probably use it) as opposed to the records themselves

from pivottable.

fleipold avatar fleipold commented on June 23, 2024

@nicolaskruchten is there a plan to add a callback, so that one wouldn't have to patch the renderer to get access to the records underneath the aggregates?

from pivottable.

nicolaskruchten avatar nicolaskruchten commented on June 23, 2024

I'm looking at merging #557 or something like it.

from pivottable.

nicolaskruchten avatar nicolaskruchten commented on June 23, 2024

functionality for this is now in master!

from pivottable.

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.