Skip to content

Commit 9d67681

Browse files
committed
docs(examples): add bar_label_null example
1 parent 502db1d commit 9d67681

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"description": "A simple bar chart with embedded data.",
4+
"data": {
5+
"values": [
6+
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": null}
7+
]
8+
},
9+
10+
"encoding": {
11+
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
12+
"y": {"field": "b", "type": "quantitative"}
13+
},
14+
"layer": [{
15+
"mark": {"type": "bar", "invalid": "show"}
16+
}, {
17+
"mark": {"type": "text", "invalid": "show", "baseline": "bottom"},
18+
"encoding": {
19+
"text": {"field": "b", "type": "quantitative"}
20+
}
21+
}]
22+
}

0 commit comments

Comments
 (0)