hvega-0.6.0.0: tests/specs/conditional/axisconditionlabeloffset.vl
{
"height": 600,
"mark": {
"opacity": 0.1,
"type": "point"
},
"data": {
"url": "https://vega.github.io/vega-lite/data/movies.json"
},
"width": 600,
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"encoding": {
"x": {
"field": "IMDB_Rating",
"type": "quantitative",
"axis": {
"labelOffset": {
"value": 5,
"condition": {
"value": 10,
"test": "datum.value <= 5"
}
},
"tickCount": 20
}
},
"y": {
"field": "Rotten_Tomatoes_Rating",
"type": "quantitative"
}
}
}