Skip to content

Commit

Permalink
add bar_conditional_opacity.vl.json
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliu-db committed May 31, 2024
1 parent 502db1d commit dc4c580
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions examples/specs/bar_conditional_opacity.vl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"width": 400,
"height": 400,
"layer": [
{
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"field": "C2",
"type": "nominal"
},
"y": {
"field": "Q1_Null",
"type": "quantitative"
},
"opacity": {
"condition": [
{
"test": "false",
"value": 0.2
}
]
}
}
}
],
"data": {
"values": [
{
"Q1_Null": null,
"C2": "a1"
},
{
"Q1_Null": null,
"C2": "b1"
},
{
"Q1_Null": 82.3,
"C2": "c1"
},
{
"Q1_Null": 41.1,
"C2": "a2"
},
{
"Q1_Null": 31.1,
"C2": "a2"
}
]
}
}

0 comments on commit dc4c580

Please sign in to comment.