Skip to content

Commit

Permalink
chore: update examples [CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Dec 8, 2021
1 parent 5aeed00 commit 76ad8a6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
22 changes: 11 additions & 11 deletions examples/compiled/facet_bullet.vg.json
Expand Up @@ -80,7 +80,12 @@
]
},
{
"name": "data_1",
"name": "row_domain",
"source": "data_0",
"transform": [{"type": "aggregate", "groupby": ["title"]}]
},
{
"name": "data_2",
"source": "data_0",
"transform": [
{
Expand All @@ -98,7 +103,7 @@
]
},
{
"name": "data_2",
"name": "data_3",
"source": "data_0",
"transform": [
{
Expand All @@ -116,7 +121,7 @@
]
},
{
"name": "data_3",
"name": "data_4",
"source": "data_0",
"transform": [
{
Expand All @@ -134,7 +139,7 @@
]
},
{
"name": "data_4",
"name": "data_5",
"source": "data_0",
"transform": [
{
Expand All @@ -152,7 +157,7 @@
]
},
{
"name": "data_5",
"name": "data_6",
"source": "data_0",
"transform": [
{
Expand All @@ -170,19 +175,14 @@
]
},
{
"name": "data_6",
"name": "data_7",
"source": "data_0",
"transform": [
{
"type": "filter",
"expr": "isValid(datum[\"markers.0\"]) && isFinite(+datum[\"markers.0\"])"
}
]
},
{
"name": "row_domain",
"source": "data_0",
"transform": [{"type": "aggregate", "groupby": ["title"]}]
}
],
"signals": [
Expand Down
30 changes: 15 additions & 15 deletions examples/compiled/interactive_multi_line_pivot_tooltip.vg.json
Expand Up @@ -17,15 +17,12 @@
"source": "source_0",
"transform": [
{
"type": "pivot",
"field": "symbol",
"value": "price",
"groupby": ["date"]
"type": "filter",
"expr": "length(data(\"hover_store\")) && vlSelectionTest(\"hover_store\", datum)"
},
{"type": "formula", "expr": "toDate(datum[\"date\"])", "as": "date"},
{
"type": "filter",
"expr": "(isDate(datum[\"date\"]) || (isValid(datum[\"date\"]) && isFinite(+datum[\"date\"])))"
"expr": "(isDate(datum[\"date\"]) || (isValid(datum[\"date\"]) && isFinite(+datum[\"date\"]))) && isValid(datum[\"price\"]) && isFinite(+datum[\"price\"])"
}
]
},
Expand All @@ -34,12 +31,15 @@
"source": "source_0",
"transform": [
{
"type": "filter",
"expr": "length(data(\"hover_store\")) && vlSelectionTest(\"hover_store\", datum)"
"type": "pivot",
"field": "symbol",
"value": "price",
"groupby": ["date"]
},
{"type": "formula", "expr": "toDate(datum[\"date\"])", "as": "date"},
{
"type": "filter",
"expr": "(isDate(datum[\"date\"]) || (isValid(datum[\"date\"]) && isFinite(+datum[\"date\"]))) && isValid(datum[\"price\"]) && isFinite(+datum[\"price\"])"
"expr": "(isDate(datum[\"date\"]) || (isValid(datum[\"date\"]) && isFinite(+datum[\"date\"])))"
}
]
}
Expand Down Expand Up @@ -147,7 +147,7 @@
"type": "symbol",
"style": ["point"],
"interactive": false,
"from": {"data": "data_1"},
"from": {"data": "data_0"},
"encode": {
"update": {
"opacity": {"value": 0.7},
Expand All @@ -167,7 +167,7 @@
"type": "rule",
"style": ["rule"],
"interactive": true,
"from": {"data": "data_0"},
"from": {"data": "data_1"},
"encode": {
"update": {
"stroke": {"value": "black"},
Expand Down Expand Up @@ -223,8 +223,8 @@
"domain": {
"fields": [
{"data": "source_0", "field": "date"},
{"data": "data_1", "field": "date"},
{"data": "data_0", "field": "date"}
{"data": "data_0", "field": "date"},
{"data": "data_1", "field": "date"}
]
},
"range": [0, {"signal": "width"}]
Expand All @@ -235,7 +235,7 @@
"domain": {
"fields": [
{"data": "source_0", "field": "price"},
{"data": "data_1", "field": "price"}
{"data": "data_0", "field": "price"}
]
},
"range": [{"signal": "height"}, 0],
Expand All @@ -248,7 +248,7 @@
"domain": {
"fields": [
{"data": "source_0", "field": "symbol"},
{"data": "data_1", "field": "symbol"}
{"data": "data_0", "field": "symbol"}
],
"sort": true
},
Expand Down
36 changes: 18 additions & 18 deletions examples/compiled/interactive_seattle_weather.vg.json
Expand Up @@ -16,6 +16,10 @@
"name": "data_0",
"source": "source_0",
"transform": [
{
"type": "filter",
"expr": "!length(data(\"click_store\")) || vlSelectionTest(\"click_store\", datum)"
},
{
"field": "date",
"type": "timeunit",
Expand All @@ -24,25 +28,14 @@
},
{
"type": "filter",
"expr": "!length(data(\"brush_store\")) || vlSelectionTest(\"brush_store\", datum)"
},
{
"type": "aggregate",
"groupby": ["weather"],
"ops": ["count"],
"fields": [null],
"as": ["__count"]
"expr": "(isDate(datum[\"monthdate_date\"]) || (isValid(datum[\"monthdate_date\"]) && isFinite(+datum[\"monthdate_date\"]))) && isValid(datum[\"temp_max\"]) && isFinite(+datum[\"temp_max\"]) && isValid(datum[\"precipitation\"]) && isFinite(+datum[\"precipitation\"])"
}
]
},
{
"name": "data_1",
"source": "source_0",
"transform": [
{
"type": "filter",
"expr": "!length(data(\"click_store\")) || vlSelectionTest(\"click_store\", datum)"
},
{
"field": "date",
"type": "timeunit",
Expand All @@ -51,7 +44,14 @@
},
{
"type": "filter",
"expr": "(isDate(datum[\"monthdate_date\"]) || (isValid(datum[\"monthdate_date\"]) && isFinite(+datum[\"monthdate_date\"]))) && isValid(datum[\"temp_max\"]) && isFinite(+datum[\"temp_max\"]) && isValid(datum[\"precipitation\"]) && isFinite(+datum[\"precipitation\"])"
"expr": "!length(data(\"brush_store\")) || vlSelectionTest(\"brush_store\", datum)"
},
{
"type": "aggregate",
"groupby": ["weather"],
"ops": ["count"],
"fields": [null],
"as": ["__count"]
}
]
}
Expand Down Expand Up @@ -304,7 +304,7 @@
"type": "symbol",
"style": ["point"],
"interactive": true,
"from": {"data": "data_1"},
"from": {"data": "data_0"},
"encode": {
"update": {
"opacity": {"value": 0.7},
Expand Down Expand Up @@ -480,7 +480,7 @@
"type": "rect",
"style": ["bar"],
"interactive": true,
"from": {"data": "data_0"},
"from": {"data": "data_1"},
"encode": {
"update": {
"fill": [
Expand Down Expand Up @@ -555,7 +555,7 @@
{
"name": "concat_0_x",
"type": "time",
"domain": {"data": "data_1", "field": "monthdate_date"},
"domain": {"data": "data_0", "field": "monthdate_date"},
"range": [0, {"signal": "width"}]
},
{
Expand All @@ -568,15 +568,15 @@
{
"name": "concat_1_x",
"type": "linear",
"domain": {"data": "data_0", "field": "__count"},
"domain": {"data": "data_1", "field": "__count"},
"range": [0, {"signal": "width"}],
"nice": true,
"zero": true
},
{
"name": "concat_1_y",
"type": "band",
"domain": {"data": "data_0", "field": "weather", "sort": true},
"domain": {"data": "data_1", "field": "weather", "sort": true},
"range": {"step": {"signal": "concat_1_y_step"}},
"paddingInner": 0.1,
"paddingOuter": 0.05
Expand Down

0 comments on commit 76ad8a6

Please sign in to comment.