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 Feb 8, 2021
1 parent 9679a96 commit 2e870be
Show file tree
Hide file tree
Showing 92 changed files with 726 additions and 295 deletions.
5 changes: 4 additions & 1 deletion examples/compiled/airport_connections.vg.json
Expand Up @@ -145,7 +145,10 @@
{"events": [{"source": "view", "type": "dblclick"}], "update": "null"}
]
},
{"name": "org_tuple_fields", "value": [{"type": "E", "field": "origin"}]},
{
"name": "org_tuple_fields",
"value": [{"type": "E", "field": "origin", "index": 0}]
},
{
"name": "org_toggle",
"value": false,
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/bar_count_minimap.vg.json
Expand Up @@ -219,7 +219,7 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "Name", "channel": "y", "type": "E"}]
"value": [{"field": "Name", "channel": "y", "type": "E", "index": 0}]
},
{
"name": "brush_translate_anchor",
Expand Down
9 changes: 7 additions & 2 deletions examples/compiled/brush_table.vg.json
Expand Up @@ -236,8 +236,13 @@
{
"name": "brush_tuple_fields",
"value": [
{"field": "Horsepower", "channel": "x", "type": "R"},
{"field": "Miles_per_Gallon", "channel": "y", "type": "R"}
{"field": "Horsepower", "channel": "x", "type": "R", "index": 0},
{
"field": "Miles_per_Gallon",
"channel": "y",
"type": "R",
"index": 1
}
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples/compiled/circle_bubble_health_income.vg.json
Expand Up @@ -69,8 +69,8 @@
{
"name": "view_tuple_fields",
"value": [
{"field": "income", "channel": "x", "type": "R"},
{"field": "health", "channel": "y", "type": "R"}
{"field": "income", "channel": "x", "type": "R", "index": 0},
{"field": "health", "channel": "y", "type": "R", "index": 1}
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion examples/compiled/concat_bar_layer_circle.vg.json
Expand Up @@ -292,7 +292,9 @@
},
{
"name": "pts_tuple_fields",
"value": [{"field": "Major Genre", "channel": "x", "type": "E"}]
"value": [
{"field": "Major Genre", "channel": "x", "type": "E", "index": 0}
]
},
{
"name": "pts_toggle",
Expand Down
16 changes: 11 additions & 5 deletions examples/compiled/concat_hover.vg.json
Expand Up @@ -5,7 +5,13 @@
"padding": 5,
"height": 200,
"data": [
{"name": "hover_store"},
{
"name": "hover_store",
"transform": [
{"type": "formula", "expr": "datum.values[0]", "as": "_vgsid_"},
{"type": "collect", "sort": {"field": "_vgsid_"}}
]
},
{
"name": "source_0",
"url": "data/cars.json",
Expand Down Expand Up @@ -76,7 +82,7 @@
},
{
"name": "hover_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "hover_toggle",
Expand Down Expand Up @@ -115,7 +121,7 @@
"fill": {"value": "transparent"},
"stroke": [
{
"test": "length(data(\"hover_store\")) && vlSelectionTest(\"hover_store\", datum)",
"test": "length(data(\"hover_store\")) && vlSelectionIdTest(\"hover_store\", datum)",
"scale": "color",
"field": "Cylinders"
},
Expand Down Expand Up @@ -208,7 +214,7 @@
},
{
"name": "hover_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "hover_toggle",
Expand Down Expand Up @@ -247,7 +253,7 @@
"fill": {"value": "transparent"},
"stroke": [
{
"test": "length(data(\"hover_store\")) && vlSelectionTest(\"hover_store\", datum)",
"test": "length(data(\"hover_store\")) && vlSelectionIdTest(\"hover_store\", datum)",
"scale": "color",
"field": "Cylinders"
},
Expand Down
14 changes: 10 additions & 4 deletions examples/compiled/concat_hover_filter.vg.json
Expand Up @@ -5,7 +5,13 @@
"padding": 5,
"height": 200,
"data": [
{"name": "hover_store"},
{
"name": "hover_store",
"transform": [
{"type": "formula", "expr": "datum.values[0]", "as": "_vgsid_"},
{"type": "collect", "sort": {"field": "_vgsid_"}}
]
},
{
"name": "source_0",
"url": "data/cars.json",
Expand All @@ -28,7 +34,7 @@
"transform": [
{
"type": "filter",
"expr": "length(data(\"hover_store\")) && vlSelectionTest(\"hover_store\", datum)"
"expr": "length(data(\"hover_store\")) && vlSelectionIdTest(\"hover_store\", datum)"
}
]
},
Expand Down Expand Up @@ -106,7 +112,7 @@
},
{
"name": "hover_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "hover_toggle",
Expand Down Expand Up @@ -251,7 +257,7 @@
},
{
"name": "hover_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "hover_toggle",
Expand Down
4 changes: 3 additions & 1 deletion examples/compiled/interactive_area_brush.vg.json
Expand Up @@ -143,7 +143,9 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "yearmonth_date", "channel": "x", "type": "R"}]
"value": [
{"field": "yearmonth_date", "channel": "x", "type": "R", "index": 0}
]
},
{
"name": "brush_translate_anchor",
Expand Down
26 changes: 19 additions & 7 deletions examples/compiled/interactive_bar_select_highlight.vg.json
Expand Up @@ -6,8 +6,20 @@
"height": 200,
"style": "cell",
"data": [
{"name": "highlight_store"},
{"name": "select_store"},
{
"name": "highlight_store",
"transform": [
{"type": "formula", "expr": "datum.values[0]", "as": "_vgsid_"},
{"type": "collect", "sort": {"field": "_vgsid_"}}
]
},
{
"name": "select_store",
"transform": [
{"type": "formula", "expr": "datum.values[0]", "as": "_vgsid_"},
{"type": "collect", "sort": {"field": "_vgsid_"}}
]
},
{
"name": "source_0",
"values": [
Expand Down Expand Up @@ -76,7 +88,7 @@
},
{
"name": "highlight_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "highlight_toggle",
Expand Down Expand Up @@ -111,7 +123,7 @@
},
{
"name": "select_tuple_fields",
"value": [{"type": "E", "field": "_vgsid_"}]
"value": [{"type": "E", "field": "_vgsid_", "index": 0}]
},
{
"name": "select_toggle",
Expand Down Expand Up @@ -148,18 +160,18 @@
"cursor": {"value": "pointer"},
"fillOpacity": [
{
"test": "!length(data(\"select_store\")) || vlSelectionTest(\"select_store\", datum)",
"test": "!length(data(\"select_store\")) || vlSelectionIdTest(\"select_store\", datum)",
"value": 1
},
{"value": 0.3}
],
"strokeWidth": [
{
"test": "length(data(\"select_store\")) && vlSelectionTest(\"select_store\", datum)",
"test": "length(data(\"select_store\")) && vlSelectionIdTest(\"select_store\", datum)",
"value": 2
},
{
"test": "length(data(\"highlight_store\")) && vlSelectionTest(\"highlight_store\", datum)",
"test": "length(data(\"highlight_store\")) && vlSelectionIdTest(\"highlight_store\", datum)",
"value": 1
},
{"value": 0}
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/interactive_bin_extent.vg.json
Expand Up @@ -194,7 +194,7 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "time", "channel": "x", "type": "R"}]
"value": [{"field": "time", "channel": "x", "type": "R", "index": 0}]
},
{
"name": "brush_translate_anchor",
Expand Down
2 changes: 1 addition & 1 deletion examples/compiled/interactive_bin_extent_bottom.vg.json
Expand Up @@ -283,7 +283,7 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "time", "channel": "x", "type": "R"}]
"value": [{"field": "time", "channel": "x", "type": "R", "index": 0}]
},
{
"name": "brush_translate_anchor",
Expand Down
13 changes: 9 additions & 4 deletions examples/compiled/interactive_brush.vg.json
Expand Up @@ -13,8 +13,13 @@
{
"unit": "",
"fields": [
{"field": "Horsepower", "channel": "x", "type": "R"},
{"field": "Miles_per_Gallon", "channel": "y", "type": "R"}
{"field": "Horsepower", "channel": "x", "type": "R", "index": 0},
{
"field": "Miles_per_Gallon",
"channel": "y",
"type": "R",
"index": 1
}
],
"values": [[55, 160], [13, 37]]
}
Expand Down Expand Up @@ -187,8 +192,8 @@
{
"name": "brush_tuple_fields",
"value": [
{"field": "Horsepower", "channel": "x", "type": "R"},
{"field": "Miles_per_Gallon", "channel": "y", "type": "R"}
{"field": "Horsepower", "channel": "x", "type": "R", "index": 0},
{"field": "Miles_per_Gallon", "channel": "y", "type": "R", "index": 1}
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion examples/compiled/interactive_concat_layer.vg.json
Expand Up @@ -306,7 +306,9 @@
},
{
"name": "pts_tuple_fields",
"value": [{"field": "Major Genre", "channel": "x", "type": "E"}]
"value": [
{"field": "Major Genre", "channel": "x", "type": "E", "index": 0}
]
},
{
"name": "pts_toggle",
Expand Down
14 changes: 10 additions & 4 deletions examples/compiled/interactive_dashboard_europe_pop.vg.json
Expand Up @@ -471,7 +471,9 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "Country", "channel": "y", "type": "E"}]
"value": [
{"field": "Country", "channel": "y", "type": "E", "index": 0}
]
},
{
"name": "brush_translate_anchor",
Expand Down Expand Up @@ -795,7 +797,9 @@
},
{
"name": "brush_tuple_fields",
"value": [{"field": "Country", "channel": "y", "type": "E"}]
"value": [
{"field": "Country", "channel": "y", "type": "E", "index": 0}
]
},
{
"name": "brush_translate_anchor",
Expand Down Expand Up @@ -1189,12 +1193,14 @@
{
"field": "Population_ages_65_and_above_of_total",
"channel": "x",
"type": "R"
"type": "R",
"index": 0
},
{
"field": "Population_ages_15_64_of_total",
"channel": "y",
"type": "R"
"type": "R",
"index": 1
}
]
},
Expand Down
11 changes: 7 additions & 4 deletions examples/compiled/interactive_global_development.vg.json
Expand Up @@ -12,7 +12,7 @@
"values": [
{
"unit": "layer_1_layer_1",
"fields": [{"type": "E", "field": "year"}],
"fields": [{"type": "E", "field": "year", "index": 0}],
"values": [1955]
}
]
Expand Down Expand Up @@ -141,7 +141,10 @@
"name": "year_tuple",
"update": "year_year !== null ? {fields: year_tuple_fields, values: [year_year]} : null"
},
{"name": "year_tuple_fields", "value": [{"type": "E", "field": "year"}]},
{
"name": "year_tuple_fields",
"value": [{"type": "E", "field": "year", "index": 0}]
},
{
"name": "year_modify",
"on": [
Expand All @@ -164,7 +167,7 @@
},
{
"name": "hovered_tuple_fields",
"value": [{"type": "E", "field": "country"}]
"value": [{"type": "E", "field": "country", "index": 0}]
},
{
"name": "hovered_modify",
Expand All @@ -188,7 +191,7 @@
},
{
"name": "clicked_tuple_fields",
"value": [{"type": "E", "field": "country"}]
"value": [{"type": "E", "field": "country", "index": 0}]
},
{
"name": "clicked_toggle",
Expand Down
Binary file modified examples/compiled/interactive_index_chart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions examples/compiled/interactive_index_chart.vg.json
Expand Up @@ -11,7 +11,9 @@
"values": [
{
"unit": "layer_0",
"fields": [{"field": "date", "channel": "x", "type": "E"}],
"fields": [
{"field": "date", "channel": "x", "type": "E", "index": 0}
],
"values": [1104566400000]
}
]
Expand Down Expand Up @@ -127,7 +129,7 @@
},
{
"name": "index_tuple_fields",
"value": [{"field": "date", "channel": "x", "type": "E"}]
"value": [{"field": "date", "channel": "x", "type": "E", "index": 0}]
},
{
"name": "index_toggle",
Expand Down

0 comments on commit 2e870be

Please sign in to comment.