hvega-0.12.0.7: tests/specs/time/timeUnitTransform.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"encoding": {
"x": {
"axis": {
"format": "%b"
},
"field": "month",
"type": "temporal"
},
"y": {
"aggregate": "max",
"field": "temp_max",
"type": "quantitative"
}
},
"mark": "line",
"transform": [
{
"as": "month",
"field": "date",
"timeUnit": "month"
}
]
}