hvega-0.12.0.7: tests/specs/conditional/axisCondition3.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://vega.github.io/vega-lite/data/movies.json"
},
"encoding": {
"x": {
"axis": {
"labelAlign": {
"condition": {
"test": "datum.value <= 1",
"value": "right"
},
"value": "left"
},
"labelBaseline": {
"condition": {
"test": "datum.value <= 3",
"value": "top"
},
"value": "bottom"
},
"labelColor": {
"condition": {
"test": "datum.value <= 2",
"value": "red"
},
"value": "blue"
},
"labelFont": {
"condition": {
"test": "datum.value <= 4",
"value": "serif"
},
"value": "sans-serif"
},
"labelFontSize": {
"condition": {
"test": "datum.value <= 6",
"value": 12
},
"value": 18
},
"labelFontStyle": {
"condition": {
"test": "datum.value <=8",
"value": "normal"
},
"value": "italic"
},
"labelFontWeight": {
"condition": {
"test": "datum.label =='4.0'",
"value": "bold"
},
"value": 100
},
"labelOpacity": {
"condition": {
"test": "datum.value >=9",
"value": 0.3
},
"value": 0.8
},
"tickCount": 20
},
"field": "IMDB_Rating",
"type": "quantitative"
},
"y": {
"field": "Rotten_Tomatoes_Rating",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"opacity": 0.1,
"type": "point"
},
"width": 600
}