Comments (9)
I'd love to hear about any use cases where that's not an option, though!
A simple one: use fully the filters.
An example. Here I would like to filter date from 2021-03-21 to 2021-04-05. Using only the GUI I'm not able to do it. But using and understanding URL parameters, having a URL parameters README I could build a right URL, the URL I need, using unixtimestamp &filters=<myfield>=<start>,<stop>
.
The same using filter on codice_regione_ISTAT
. I'm not able via GUI to filter only the 19
region. Once again having a documentation I could write &filters=codice_regione_ISTAT=19,19
.
Thank you
from flat-viewer.
I second that request. Your flat data viewer has some nifty params to pull data from commits, etc. Would be good if they were documented in this repo for us to explore data files with different url params to create and share custom data URL views.
Thanks!
from flat-viewer.
Yes @RandomFractals . I think it would be very useful to add the value type: in example for field mapped as date it's necessary to use Unix timestamp, etc.
from flat-viewer.
Since this isn't supported functionality, it's important to be careful how we document "url-hacking". However, I can see that documentation being useful, if either of you wants to take a stab at it.
The relevant code lives in these two places:
https://github.com/githubocto/flat-viewer/blob/main/src/components/repo-detail.tsx#L39-L40
https://github.com/githubocto/flat-viewer/blob/main/src/components/json-detail-container.tsx#L24-L30
from flat-viewer.
The url params mirror the current state of the table, for example the "stickyColumnName" represents the leftmost-column, which sticks when you scroll right. For creating and sharing URLs, you should be able to just filter and sort as you please, then share the current url - way easier than URL hacking.
I'd love to hear about any use cases where that's not an option, though!
from flat-viewer.
yeah, but I think you can create a simple md table in docs to document those parts.
from flat-viewer.
@aborruso that's a perfect example. I was also looking for something like that param line example you provided but in md table that describes each param function and uses similar syntax for examples in description column.
does not have to be fancy
Parameter Name | Parameter Values | Description |
---|---|---|
filters |
<field1>=<start><stop>,<field2=...> |
Filter to apply to the flat data view |
where:
<start>
- start value ...
<end>
- end value ...
...
from flat-viewer.
right, so, I think supported data types and filter data formats should be listed too. good point!
from flat-viewer.
I'll let @aborruso take a stab at it since he initiated this convo. Good to know where to look tho. Thanks for those code links.
btw, I was going over your open requests. Added this bit for folks looking for charts for now: #17 (comment)
from flat-viewer.
Related Issues (20)
- Support for files stored with Git LFS HOT 3
- Datetime columns do not display correctly on mobile HOT 1
- graph evolution of a numeric value over time HOT 4
- Unique file names for downloads HOT 2
- Tag releases HOT 1
- feat: list repos tagged with `flat-data` if only org is specified HOT 3
- Exclude linters and other .json config files you can't display
- Support a `.flatignore` file HOT 2
- Handle fields with units as numbers HOT 6
- Location on dates and values HOT 1
- Feature request: Private repo support HOT 3
- UI: sticker/link back to flat-viewer github repo HOT 1
- 404 error in private repo HOT 2
- not recognizing number HOT 2
- numbers not sorting correctly HOT 1
- Allow user to query dataset with duckdb-wasm
- Allow content payload exceeds `1MB`
- Allow addition of title and brief documentation in Flat Viewer HOT 2
- New line character issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flat-viewer.