Skip to content

Commit

Permalink
docs(examples): modify + add more invalid examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Apr 28, 2024
1 parent 716fe73 commit abba627
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/specs/line_skip_invalid.vl.json
Expand Up @@ -2,6 +2,10 @@
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{
"x": -1,
"y": null
},
{
"x": 1,
"y": 10
Expand Down Expand Up @@ -29,6 +33,10 @@
{
"x": 7,
"y": 20
},
{
"x": 10,
"y": null
}
]
},
Expand Down
48 changes: 48 additions & 0 deletions examples/specs/line_skip_invalid_ordinal.vl.json
@@ -0,0 +1,48 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{
"x": -1,
"y": null
},
{
"x": 1,
"y": 10
},
{
"x": 2,
"y": 30
},
{
"x": 3,
"y": null
},
{
"x": 4,
"y": 15
},
{
"x": 5,
"y": 30
},
{
"x": 6,
"y": 40
},
{
"x": 7,
"y": 20
},
{
"x": 10,
"y": null
}
]
},
"mark": "line",
"encoding": {
"x": {"field": "x", "type": "ordinal"},
"y": {"field": "y", "type": "quantitative"}
}
}
48 changes: 48 additions & 0 deletions examples/specs/point_invalid_ordinal.vl.json
@@ -0,0 +1,48 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{
"x": -1,
"y": null
},
{
"x": 1,
"y": 10
},
{
"x": 2,
"y": 30
},
{
"x": 3,
"y": null
},
{
"x": 4,
"y": 15
},
{
"x": 5,
"y": 30
},
{
"x": 6,
"y": 40
},
{
"x": 7,
"y": 20
},
{
"x": 10,
"y": null
}
]
},
"mark": "point",
"encoding": {
"x": {"field": "x", "type": "ordinal"},
"y": {"field": "y", "type": "quantitative"}
}
}
48 changes: 48 additions & 0 deletions examples/specs/point_invalid_quantitative.vl.json
@@ -0,0 +1,48 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{
"x": -1,
"y": null
},
{
"x": 1,
"y": 10
},
{
"x": 2,
"y": 30
},
{
"x": 3,
"y": null
},
{
"x": 4,
"y": 15
},
{
"x": 5,
"y": 30
},
{
"x": 6,
"y": 40
},
{
"x": 7,
"y": 20
},
{
"x": 10,
"y": null
}
]
},
"mark": "point",
"encoding": {
"x": {"field": "x", "type": "quantitative"},
"y": {"field": "y", "type": "quantitative"}
}
}

0 comments on commit abba627

Please sign in to comment.