Skip to content

Commit

Permalink
docs(examples): add bar_label_null example
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed May 20, 2024
1 parent 502db1d commit 9d67681
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/specs/bar_label_null.vl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": null}
]
},

"encoding": {
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
"y": {"field": "b", "type": "quantitative"}
},
"layer": [{
"mark": {"type": "bar", "invalid": "show"}
}, {
"mark": {"type": "text", "invalid": "show", "baseline": "bottom"},
"encoding": {
"text": {"field": "b", "type": "quantitative"}
}
}]
}

0 comments on commit 9d67681

Please sign in to comment.