Comments (1)
Related open issues in Vega-Lite: #3958, #1541.
To achieve the desired functionality, need to parse the date string and pass an object with year
, month
explicitly. For example:
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "mark": { "type": "line", "tooltip": true }, "encoding": { "y": { "field": "Production Budget", "type": "quantitative", "aggregate": "mean", "axis": { "format": "s" } }, "x": { "field": "Release Year", "type": "temporal" } }, "transform": [ { "filter": { "field": "Release Year", "range": [ {"year": 2006}, {"year": 2009} ] } } ], "data": { "url": "https://raw.githubusercontent.com/nl4dv/nl4dv/master/examples/assets/data/movies-w-year.csv", "format": { "type": "csv" } } }
This will require writing a date parser utility that also prepares the desired datetime object needed by above.
from nl4dv.
Related Issues (12)
- Use database as data source? HOT 3
- The helper functions that help determine attribute datatypes err when input with `None`
- path (delimiter) to the dataset for debugger_batch application is incorrect
- chaining jquery $.ajax for async:false requests with .done() is not working
- ImportError Issue HOT 2
- Issue generating vega lite visualisation HOT 8
- Is there a way to use a data frame instead of a file path? HOT 4
- {"aggregate": None/null} key in the output vega-lite spec cause Validation error when using the altair vega-lite renderer in Colab HOT 1
- Generated vega-lite spec does not render when NL4DV is initialized using a .tsv dataset file HOT 1
- Default to a "sum" aggregation for a stacked bar chart vis
- Attributes detected using multiple instances of the same keywords are getting dropped off in the final attributeMap.
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 nl4dv.