I am putting some data in vega-lite, which has time values in the format " YYYY-MM-DD HH:MM:SS".
And I want the timeline in x-axis with hourly division of 24hrs as well as the date mentioned.
I have put the following json to get some output, but it is not giving me of each hour.
"encoding": {
"x": {
"timeUnit": "yearmonthdatehoursminutes",
"field":"time",
"type": "temporal",
"axis": {
"format": " %d %b %a %H:%M",
"title": "timeline"
},
},
"y": {
"field": "username",
"type": "nominal",
"axis": {
"title": "users",
}
}
},
Can some help me out, thanks in advance.
I want all the 24hour division