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

add numbers and date format config options and example #156

Open
RandomFractals opened this issue Oct 9, 2019 · 9 comments
Open

add numbers and date format config options and example #156

RandomFractals opened this issue Oct 9, 2019 · 9 comments
Labels
config Configuration related issues data Data related task UX User Experience enhancement

Comments

@RandomFractals
Copy link
Owner

based on user feedback from Tolga: https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-preview&ssr=false#review-details

@RandomFractals RandomFractals added config Configuration related issues data Data related task UX User Experience enhancement labels Oct 9, 2019
@RandomFractals
Copy link
Owner Author

RandomFractals commented Oct 9, 2019

see perspectivejs docs with more info on recently added custom types support:

https://perspective.finos.org/docs/md/usage.html#customizing-behavior-with-perspectiveconfigjs

and this example with worker perspective config setup for custom types and formatting to integrate this new feature in data preview webview:

https://github.com/finos/perspective/blob/master/examples/simple/superstore-themed.html

@wxqwinner
Copy link

Hi friend, do you have a more detailed explanation about the display precision configuration of floating point numbers? I tried everything but it didn't work.thanks

@RandomFractals
Copy link
Owner Author

@wxqwinner I have not worked on this yet, but basically data view config will have new types structure with some default for floats and dates that you will be able to change similar to this setup: https://github.com/finos/perspective/blob/master/examples/simple/superstore-themed.html#L72

RandomFractals added a commit that referenced this issue Jan 20, 2020
updated cars.json5 and cars.hjson sample data files with the results
@RandomFractals
Copy link
Owner Author

RandomFractals commented Jan 20, 2020

perspective lib docs are really bad on this part & config options :(

found this gem for adding readable dates on saves:

finos/perspective@389d57e

will use it as a template for the date formatting hooks, default ext. setting and config options for this update

@RandomFractals
Copy link
Owner Author

RandomFractals commented Jan 21, 2020

will add ISO date default setting and date locale config options in the next v2.x release ...

@jcro21
Copy link

jcro21 commented Dec 15, 2021

Just adding my '+1' to the "need a fix for unwanted rounding of floats".

For example I often have csv datasets with column value ranges of 0.0001 to 0.9999 (and sadly for this issue, heavily skewed to the 0.0000 to 0.0099 range) that get rounded to 2 decimals when shown by the extension. This of course makes the data shown pretty inaccurate.

Aside from that the extension is pretty useful and I'm thankful for your efforts!

@igorsdub
Copy link

Hey,
I run in the same problem, unfortunately.

@RandomFractals
Copy link
Owner Author

RandomFractals commented Jan 24, 2022

New Tabular Data Viewer v1.6.0 I will be releasing today uses updated Perspective viewer library and plugins, provides some rudimentary data streaming for large data files, better config save/restore view options, and precision you can set for numeric columns:

https://github.com/RandomFractals/tabular-data-viewer/blob/main/CHANGELOG.md#v160---2022-01-24

Example:

tabular-data-view-perspective-datagrid-numeric-data-precision

@tyler36
Copy link

tyler36 commented May 12, 2023

I got really confused today looking at the source JSON display dates in Y-m-d format but using this extension, it was m/d/y.
Would love to be able to configure a prefered format.

Both links in a early comment, #156 (comment), are 404'ing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Configuration related issues data Data related task UX User Experience enhancement
Projects
None yet
Development

No branches or pull requests

5 participants