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

Support both humanized and raw values in the exported csv #52

Open
shankari opened this issue Jun 5, 2023 · 6 comments
Open

Support both humanized and raw values in the exported csv #52

shankari opened this issue Jun 5, 2023 · 6 comments

Comments

@shankari
Copy link
Contributor

shankari commented Jun 5, 2023

  • If people just want to scroll through the values, we want the humanized text
  • if people want to perform their own analysis offline, we want the raw values, especially for time

I have a comment indicating this in one of my commits
e0b368d#diff-1c6b8e6d103286796ce21a8276c4a4d8b258e29d6b9cc6df516a92accf4674d1R78

but I don't see it addressed in the follow-on code

@shankari
Copy link
Contributor Author

@achasmita will work on this

@achasmita
Copy link
Contributor

achasmita commented Jan 18, 2024

I started working on it but I still cannot figure out how to display both humanized and raw data. One of the option I see is:

  • adding subtab or buttons - that way user can switch between humanized value and raw value easily and can export the format they prefer.
  • Or we can just add columns with raw data on same table.

@achasmita
Copy link
Contributor

I initially attempted to implement subtabs for displaying humanized and raw value in the table. However it is like repeating same table twice. I further explored alternative solutions and found hidden column option:

  • We can initially hide the raw value column while displaying table
  • User can use dropdown to dynamically select and display raw value columns.
  • This way user can both display and export raw value

@shankari
Copy link
Contributor Author

That sounds like a promising option. Do you have a link for the "hidden column" option and/or screenshots of what it might look like?

@achasmita
Copy link
Contributor

I tried with some random data, here's what it looks like:

Screenshot 2024-01-18 225357 Screenshot 2024-01-18 225434

@achasmita
Copy link
Contributor

That sounds like a promising option. Do you have a link for the "hidden column" option and/or screenshots of what it might look like?

https://community.plotly.com/t/how-do-i-hide-a-column-of-a-data-table-from-being-displayed-but-use-that-column-for-filtering-and-sorting/67777/2

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

2 participants