Skip to content

Commit e575e36

Browse files
committed
docs(examples): add point_label_null examples
1 parent 502db1d commit e575e36

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"data": {
4+
"values": [
5+
{"a": "Jan 1, 2000", "b": 28},
6+
{"a": "Jan 2, 2000", "b": 55},
7+
{"a": "Jan 3, 2000", "b": null},
8+
{"a": "Jan 4, 2000", "b": 65},
9+
{"a": "Jan 5, 2000", "b": 43},
10+
{"a": null, "b": 50}
11+
]
12+
},
13+
14+
"encoding": {
15+
"x": {"timeUnit": "yearmonthdate", "field": "a", "type": "temporal", "axis": {"format": "%d %b"}},
16+
"y": {"field": "b", "type": "quantitative"}
17+
},
18+
"layer": [{
19+
"mark": {"type": "point", "invalid": "show"}
20+
}, {
21+
"mark": {"type": "text", "invalid": "show", "baseline": "bottom"},
22+
"encoding": {
23+
"text": {"field": "b", "type": "quantitative"}
24+
}
25+
}]
26+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"data": {
4+
"values": [
5+
{"a": "Jan 1, 2000", "b": 28},
6+
{"a": "Jan 2, 2000", "b": 55},
7+
{"a": "Jan 3, 2000", "b": null},
8+
{"a": "Jan 4, 2000", "b": 65},
9+
{"a": "Jan 5, 2000", "b": 43},
10+
{"a": null, "b": 50}
11+
]
12+
},
13+
14+
"encoding": {
15+
"x": {"timeUnit": "yearmonthdate", "field": "a", "type": "temporal", "axis": {"format": "%d %b"}},
16+
"y": {"field": "b", "type": "quantitative"}
17+
},
18+
"layer": [{
19+
"mark": {"type": "point", "invalid": "show", "tooltip": true},
20+
"encoding": {
21+
"x": {"timeUnit": "yearmonthdate", "field": "a", "type": "temporal"}
22+
}
23+
}, {
24+
"mark": {"type": "text", "invalid": "show", "baseline": "bottom"},
25+
"encoding": {
26+
"text": {"timeUnit": "yearmonthdate", "field": "a", "type": "temporal", "axis": {"format": "%d %b"}}
27+
}
28+
}]
29+
}

0 commit comments

Comments
 (0)