Last active
May 21, 2018 04:06
-
-
Save ggada/d38af0fb5be04955a5eec592ff4a1cbb to your computer and use it in GitHub Desktop.
Vega time ticks precision
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v2.json", | |
"data": { | |
"values": [ | |
{ | |
"date": "2018-05-01", | |
"value": 1 | |
}, | |
{ | |
"date": "2018-05-02", | |
"value": 2 | |
}, | |
{ | |
"date": "2018-05-03", | |
"value": 3 | |
}, | |
{ | |
"date": "2018-05-04", | |
"value": 2 | |
} | |
] | |
}, | |
"layer": [ | |
{ | |
"mark": "line", | |
"encoding": { | |
"x": { | |
"field": "date", | |
"type": "temporal" | |
}, | |
"y": { | |
"field": "value", | |
"type": "quantitative" | |
} | |
} | |
}, | |
{ | |
"data": { | |
"values": [ | |
{ | |
"date": "2018-05-03" | |
} | |
] | |
}, | |
"mark": "rule", | |
"encoding": { | |
"x": { | |
"field": "date", | |
"type": "temporal", | |
"axis": { | |
"labelAngle": -90 | |
} | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment