We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simply, I am counting the number of items against time intervals.
Code:
{ "data": { "url": "https://www.cs.helsinki.fi/u/hxiao/event_html/data/ukraine/vega/data.json" }, "mark": "area", "encoding": { "x": { "timeUnit": "yearmonthdayhours", "field": "datetime", "type": "temporal", "scale": { "nice": "hour" }, "axis": { "axisWidth": 0, "format": "%m-%d %H:00", "labelAngle": 15 } }, "y": { "aggregate": "count", "field": "*" }, "color": { "field": "series", "type": "nominal", "scale": { "range": "category20" } } }, "config": { "cell": { "width": 800, "height": 400 } } }
The bug is on range of x-axis:
Or the web app: https://www.cs.helsinki.fi/u/hxiao/event_html/vega.html
The text was updated successfully, but these errors were encountered:
The issue is that you need to use date (day of the month) instead of day (day of the week). It's very confusing and I will add documentation to https://vega.github.io/vega-lite/docs/timeunit.html
{ "data": { "url": "https://dl.dropboxusercontent.com/u/12770094/data.json" }, "mark": "area", "encoding": { "x": { "timeUnit": "yearmonthdatehours", "field": "datetime", "type": "temporal" }, "y": { "aggregate": "count", "field": "*" }, "color": { "field": "series", "type": "nominal" } } }
I'll add the time units that vega-lite supports from https://github.com/vega/vega/wiki/Expressions#datetime-functions to our docs.
Sorry, something went wrong.
Document time units. Fixes #1277
cdfbd64
45cc274
bobocandys
No branches or pull requests
Simply, I am counting the number of items against time intervals.
Code:
The bug is on range of x-axis:
Or the web app: https://www.cs.helsinki.fi/u/hxiao/event_html/vega.html
The text was updated successfully, but these errors were encountered: