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

reduce area of metadata in output table #107

Closed
jangorecki opened this issue Nov 5, 2019 · 3 comments
Closed

reduce area of metadata in output table #107

jangorecki opened this issue Nov 5, 2019 · 3 comments

Comments

@jangorecki
Copy link

jangorecki commented Nov 5, 2019

By metadata I mean the area used to select columns, as opposed to data area where values are printed.
So the issue is about make the table looks more tidy. In an example below.
Screenshot_2019-11-05_15-55-48
You can see that "A" in unnecessarily wide, similarly as "B".
I would like to:

  1. make "A" as wide as it is necessary - according to width of field names listed in this column
  2. move whole rectangle marked as "B" to the top of whole table, to have it above of the table, it is not very useful to have it on the left side as it waste a lot of space. I see it is made like this in react-pivottable.js: https://react-pivottable.js.org/ example.
  3. if point 2 is not possible, then I would like to make "C" according to point 1, but still I have we should aim to have 2. resolved
@smartinsightsfromdata
Copy link
Owner

@nicolaskruchten see also #108

Do you see a way to solve this via pivotable css?

@nicolaskruchten
Copy link
Collaborator

You can do just about anything in CSS, yes, and you can use the unusedAttrsVertical parameter in pivottable.js to force the unused attribute area (the "metadata" as you call it) to always be above.

@jangorecki
Copy link
Author

jangorecki commented Nov 7, 2019

thanks @nicolaskruchten, works fine!
still the width of "A" could be improve as it doesn't have to be such wide

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

3 participants