diff --git a/examples/compiled/selection_type_region.png b/examples/compiled/selection_type_region.png index e69de29bb2d..e4b6b0a18e2 100644 Binary files a/examples/compiled/selection_type_region.png and b/examples/compiled/selection_type_region.png differ diff --git a/examples/compiled/selection_type_region.svg b/examples/compiled/selection_type_region.svg index e69de29bb2d..a76e8a0dfff 100644 --- a/examples/compiled/selection_type_region.svg +++ b/examples/compiled/selection_type_region.svg @@ -0,0 +1 @@ +050100150200Horsepower01020304050Miles_per_Gallon34568Cylinders \ No newline at end of file diff --git a/examples/compiled/selection_type_region.vg.json b/examples/compiled/selection_type_region.vg.json index 8c8188605ce..c344ad7dedf 100644 --- a/examples/compiled/selection_type_region.vg.json +++ b/examples/compiled/selection_type_region.vg.json @@ -6,12 +6,16 @@ "height": 200, "style": "cell", "data": [ - {"name": "brush_store"}, + { + "name": "brush_store", + "transform": [{"type": "collect", "sort": {"field": "_vgsid_"}}] + }, { "name": "source_0", "url": "data/cars.json", "format": {"type": "json"}, "transform": [ + {"type": "identifier", "as": "_vgsid_"}, { "type": "filter", "expr": "isValid(datum[\"Horsepower\"]) && isFinite(+datum[\"Horsepower\"]) && isValid(datum[\"Miles_per_Gallon\"]) && isFinite(+datum[\"Miles_per_Gallon\"])" @@ -63,7 +67,6 @@ } ] }, - {"name": "brush_tuple_fields", "value": []}, { "name": "brush_modify", "on": [ @@ -101,7 +104,7 @@ "fill": {"value": "transparent"}, "stroke": [ { - "test": "!length(data(\"brush_store\")) || vlSelectionTest(\"brush_store\", datum)", + "test": "!length(data(\"brush_store\")) || vlSelectionIdTest(\"brush_store\", datum)", "scale": "color", "field": "Cylinders" }, diff --git a/examples/compiled/selection_type_region_concat.png b/examples/compiled/selection_type_region_concat.png index aee9b59f584..b60a3547045 100644 Binary files a/examples/compiled/selection_type_region_concat.png and b/examples/compiled/selection_type_region_concat.png differ diff --git a/examples/compiled/selection_type_region_concat.svg b/examples/compiled/selection_type_region_concat.svg index da5d98415d3..c3a1dcf8ce0 100644 --- a/examples/compiled/selection_type_region_concat.svg +++ b/examples/compiled/selection_type_region_concat.svg @@ -1 +1 @@ -050100150200Horsepower01020304050Miles_per_Gallon \ No newline at end of file +050100150200Horsepower01020304050Miles_per_Gallon0510152025Acceleration0100200300400500Displacement \ No newline at end of file diff --git a/examples/compiled/selection_type_region_concat.vg.json b/examples/compiled/selection_type_region_concat.vg.json index a52c2b7eb44..66625fc0794 100644 --- a/examples/compiled/selection_type_region_concat.vg.json +++ b/examples/compiled/selection_type_region_concat.vg.json @@ -5,8 +5,16 @@ "padding": 5, "width": 200, "data": [ - {"name": "brush_store"}, - {"name": "source_0", "url": "data/cars.json", "format": {"type": "json"}}, + { + "name": "brush_store", + "transform": [{"type": "collect", "sort": {"field": "_vgsid_"}}] + }, + { + "name": "source_0", + "url": "data/cars.json", + "format": {"type": "json"}, + "transform": [{"type": "identifier", "as": "_vgsid_"}] + }, { "name": "data_0", "source": "source_0", @@ -91,7 +99,6 @@ } ] }, - {"name": "brush_tuple_fields", "value": []}, { "name": "brush_modify", "on": [