hvega-0.5.0.0: tests/specs/conditional/axisCondition2.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": {
"tickWidth": {
"value": 2,
"condition": {
"value": 5,
"test": "datum.label =='4.0'"
}
},
"tickDash": {
"value": [],
"condition": {
"value": [
2,
2
],
"test": "(datum.value >= 5) && (datum.value <= 8)"
}
},
"tickCount": 20,
"tickOpacity": {
"value": 0.8,
"condition": {
"value": 0.3,
"test": "datum.value >=8"
}
},
"tickColor": {
"value": "blue",
"condition": {
"value": "red",
"test": "datum.value <= 2"
}
}
}
},
"y": {
"field": "Rotten_Tomatoes_Rating",
"type": "quantitative"
}
}
}