Created
October 10, 2022 07:13
-
-
Save RalfNorthman/ccc786600b8680e651fc54f2bab72a49 to your computer and use it in GitHub Desktop.
Time axis fancy format
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/v5.json", | |
"width": 700, | |
"data": { | |
"sequence": { | |
"start": -11000000, | |
"stop": 10000000, | |
"step": 100000, | |
"as": "time" | |
} | |
}, | |
"mark": "tick", | |
"encoding": { | |
"x": { | |
"field": "time", | |
"type": "temporal", | |
"axis": { | |
"format": { | |
"year": "'%Y", | |
"hours": "kl %-H", | |
"minutes": "%H:%M"}}, | |
"scale": {"type": "utc"} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment