diff --git a/examples/compiled/brush_table.vg.json b/examples/compiled/brush_table.vg.json index 680d42611dd..5384d8a76dd 100644 --- a/examples/compiled/brush_table.vg.json +++ b/examples/compiled/brush_table.vg.json @@ -149,10 +149,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -212,10 +208,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_0_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -237,10 +229,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/circle_bubble_health_income.vg.json b/examples/compiled/circle_bubble_health_income.vg.json index 742702dcc77..9b1f4449db9 100644 --- a/examples/compiled/circle_bubble_health_income.vg.json +++ b/examples/compiled/circle_bubble_health_income.vg.json @@ -63,8 +63,7 @@ { "events": [{"signal": "view_income || view_health"}], "update": "view_income && view_health ? {unit: \"\", fields: view_tuple_fields, values: [view_income,view_health]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/interactive_area_brush.vg.json b/examples/compiled/interactive_area_brush.vg.json index 456e99ff69b..e60b629ac57 100644 --- a/examples/compiled/interactive_area_brush.vg.json +++ b/examples/compiled/interactive_area_brush.vg.json @@ -118,8 +118,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -138,8 +137,7 @@ { "events": [{"signal": "brush_yearmonth_date"}], "update": "brush_yearmonth_date ? {unit: \"layer_0\", fields: brush_tuple_fields, values: [brush_yearmonth_date]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/interactive_brush.vg.json b/examples/compiled/interactive_brush.vg.json index 978b29371b5..5907a50c5f0 100644 --- a/examples/compiled/interactive_brush.vg.json +++ b/examples/compiled/interactive_brush.vg.json @@ -86,8 +86,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -147,8 +146,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -168,8 +166,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/interactive_dashboard_europe_pop.vg.json b/examples/compiled/interactive_dashboard_europe_pop.vg.json index 57972bac887..8fdafa196be 100644 --- a/examples/compiled/interactive_dashboard_europe_pop.vg.json +++ b/examples/compiled/interactive_dashboard_europe_pop.vg.json @@ -422,10 +422,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_0_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -445,10 +441,6 @@ { "events": [{"signal": "brush_Country"}], "update": "brush_Country ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_Country]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -744,10 +736,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_1_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -767,10 +755,6 @@ { "events": [{"signal": "brush_Country"}], "update": "brush_Country ? {unit: \"concat_1\", fields: brush_tuple_fields, values: [brush_Country]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1069,10 +1053,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_2_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1132,10 +1112,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_2_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1159,10 +1135,6 @@ } ], "update": "brush_Population_ages_65_and_above_of_total && brush_Population_ages_15_64_of_total ? {unit: \"concat_2\", fields: brush_tuple_fields, values: [brush_Population_ages_65_and_above_of_total,brush_Population_ages_15_64_of_total]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_layered_crossfilter.vg.json b/examples/compiled/interactive_layered_crossfilter.vg.json index 0bf8847383d..154ecc04d5f 100644 --- a/examples/compiled/interactive_layered_crossfilter.vg.json +++ b/examples/compiled/interactive_layered_crossfilter.vg.json @@ -258,10 +258,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_column_distance_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -281,10 +277,6 @@ { "events": [{"signal": "brush_distance"}], "update": "brush_distance ? {unit: \"child__repeat_column_distance_layer_0\", fields: brush_tuple_fields, values: [brush_distance]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -634,10 +626,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_column_delay_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -657,10 +645,6 @@ { "events": [{"signal": "brush_delay"}], "update": "brush_delay ? {unit: \"child__repeat_column_delay_layer_0\", fields: brush_tuple_fields, values: [brush_delay]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1010,10 +994,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_column_time_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1033,10 +1013,6 @@ { "events": [{"signal": "brush_time"}], "update": "brush_time ? {unit: \"child__repeat_column_time_layer_0\", fields: brush_tuple_fields, values: [brush_time]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_overview_detail.vg.json b/examples/compiled/interactive_overview_detail.vg.json index a69c2844a26..4160adc0e0c 100644 --- a/examples/compiled/interactive_overview_detail.vg.json +++ b/examples/compiled/interactive_overview_detail.vg.json @@ -174,10 +174,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_1_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -197,10 +193,6 @@ { "events": [{"signal": "brush_date"}], "update": "brush_date ? {unit: \"concat_1\", fields: brush_tuple_fields, values: [brush_date]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_paintbrush_interval.vg.json b/examples/compiled/interactive_paintbrush_interval.vg.json index 284771975e5..87afb23e1ba 100644 --- a/examples/compiled/interactive_paintbrush_interval.vg.json +++ b/examples/compiled/interactive_paintbrush_interval.vg.json @@ -88,8 +88,7 @@ { "events": {"signal": "paintbrush_x"}, "update": "paintbrush_x[0] === paintbrush_x[1] ? null : invert(\"x\", paintbrush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -148,8 +147,7 @@ { "events": {"signal": "paintbrush_y"}, "update": "paintbrush_y[0] === paintbrush_y[1] ? null : invert(\"y\", paintbrush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -170,8 +168,7 @@ {"signal": "paintbrush_Horsepower || paintbrush_Miles_per_Gallon"} ], "update": "paintbrush_Horsepower && paintbrush_Miles_per_Gallon ? {unit: \"\", fields: paintbrush_tuple_fields, values: [paintbrush_Horsepower,paintbrush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/interactive_panzoom_splom.vg.json b/examples/compiled/interactive_panzoom_splom.vg.json index 02291f20696..fc285645983 100644 --- a/examples/compiled/interactive_panzoom_splom.vg.json +++ b/examples/compiled/interactive_panzoom_splom.vg.json @@ -168,10 +168,6 @@ {"signal": "grid_Miles_per_Gallon || grid_Horsepower"} ], "update": "grid_Miles_per_Gallon && grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -362,10 +358,6 @@ { "events": [{"signal": "grid_Acceleration || grid_Horsepower"}], "update": "grid_Acceleration && grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -538,10 +530,6 @@ { "events": [{"signal": "grid_Horsepower"}], "update": "grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -731,10 +719,6 @@ {"signal": "grid_Miles_per_Gallon || grid_Acceleration"} ], "update": "grid_Miles_per_Gallon && grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -907,10 +891,6 @@ { "events": [{"signal": "grid_Acceleration"}], "update": "grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1098,10 +1078,6 @@ { "events": [{"signal": "grid_Horsepower || grid_Acceleration"}], "update": "grid_Horsepower && grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1274,10 +1250,6 @@ { "events": [{"signal": "grid_Miles_per_Gallon"}], "update": "grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1467,10 +1439,6 @@ {"signal": "grid_Acceleration || grid_Miles_per_Gallon"} ], "update": "grid_Acceleration && grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1663,10 +1631,6 @@ {"signal": "grid_Horsepower || grid_Miles_per_Gallon"} ], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_panzoom_vconcat_shared.vg.json b/examples/compiled/interactive_panzoom_vconcat_shared.vg.json index 0c3c1138ec6..a1645806fd2 100644 --- a/examples/compiled/interactive_panzoom_vconcat_shared.vg.json +++ b/examples/compiled/interactive_panzoom_vconcat_shared.vg.json @@ -101,10 +101,6 @@ {"signal": "region_Horsepower || region_Miles_per_Gallon"} ], "update": "region_Horsepower && region_Miles_per_Gallon ? {unit: \"concat_0\", fields: region_tuple_fields, values: [region_Horsepower,region_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_query_widgets.vg.json b/examples/compiled/interactive_query_widgets.vg.json index 6a549842fee..acf3319b514 100644 --- a/examples/compiled/interactive_query_widgets.vg.json +++ b/examples/compiled/interactive_query_widgets.vg.json @@ -56,7 +56,8 @@ { "events": [{"source": "scope", "type": "click"}], "update": "datum && item().mark.marktype !== 'group' ? datum[\"Year\"] : null" - } + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} ], "bind": {"input": "range", "min": 1969, "max": 1981, "step": 1} }, @@ -67,7 +68,8 @@ { "events": [{"source": "scope", "type": "click"}], "update": "datum && item().mark.marktype !== 'group' ? datum[\"Cylinders\"] : null" - } + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} ], "bind": {"input": "range", "min": 3, "max": 8, "step": 1} }, diff --git a/examples/compiled/interactive_seattle_weather.vg.json b/examples/compiled/interactive_seattle_weather.vg.json index d73802ebfe4..30703c8125a 100644 --- a/examples/compiled/interactive_seattle_weather.vg.json +++ b/examples/compiled/interactive_seattle_weather.vg.json @@ -141,10 +141,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -164,10 +160,6 @@ { "events": [{"signal": "brush_monthdate_date"}], "update": "brush_monthdate_date ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_monthdate_date]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/interactive_splom.vg.json b/examples/compiled/interactive_splom.vg.json index 087b704931f..9678757cb8e 100644 --- a/examples/compiled/interactive_splom.vg.json +++ b/examples/compiled/interactive_splom.vg.json @@ -187,10 +187,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -252,10 +248,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -284,10 +276,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Horsepower"} ], "update": "brush_Miles_per_Gallon && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -423,10 +411,6 @@ {"signal": "grid_Miles_per_Gallon || grid_Horsepower"} ], "update": "grid_Miles_per_Gallon && grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -702,10 +686,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -767,10 +747,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -797,10 +773,6 @@ { "events": [{"signal": "brush_Acceleration || brush_Horsepower"}], "update": "brush_Acceleration && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -934,10 +906,6 @@ { "events": [{"signal": "grid_Acceleration || grid_Horsepower"}], "update": "grid_Acceleration && grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1213,10 +1181,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1240,10 +1204,6 @@ { "events": [{"signal": "brush_Horsepower"}], "update": "brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1356,10 +1316,6 @@ { "events": [{"signal": "grid_Horsepower"}], "update": "grid_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1629,10 +1585,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1694,10 +1646,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1726,10 +1674,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Acceleration"} ], "update": "brush_Miles_per_Gallon && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1865,10 +1809,6 @@ {"signal": "grid_Miles_per_Gallon || grid_Acceleration"} ], "update": "grid_Miles_per_Gallon && grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon,grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2144,10 +2084,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2171,10 +2107,6 @@ { "events": [{"signal": "brush_Acceleration"}], "update": "brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2287,10 +2219,6 @@ { "events": [{"signal": "grid_Acceleration"}], "update": "grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2560,10 +2488,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2625,10 +2549,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2655,10 +2575,6 @@ { "events": [{"signal": "brush_Horsepower || brush_Acceleration"}], "update": "brush_Horsepower && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2792,10 +2708,6 @@ { "events": [{"signal": "grid_Horsepower || grid_Acceleration"}], "update": "grid_Horsepower && grid_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3071,10 +2983,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3098,10 +3006,6 @@ { "events": [{"signal": "brush_Miles_per_Gallon"}], "update": "brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3214,10 +3118,6 @@ { "events": [{"signal": "grid_Miles_per_Gallon"}], "update": "grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: grid_tuple_fields, values: [grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3487,10 +3387,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3552,10 +3448,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3584,10 +3476,6 @@ {"signal": "brush_Acceleration || brush_Miles_per_Gallon"} ], "update": "brush_Acceleration && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3723,10 +3611,6 @@ {"signal": "grid_Acceleration || grid_Miles_per_Gallon"} ], "update": "grid_Acceleration && grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: grid_tuple_fields, values: [grid_Acceleration,grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -4002,10 +3886,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -4067,10 +3947,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -4099,10 +3975,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -4238,10 +4110,6 @@ {"signal": "grid_Horsepower || grid_Miles_per_Gallon"} ], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/isotype_grid.vg.json b/examples/compiled/isotype_grid.vg.json index 88fe3d8596c..97190963929 100644 --- a/examples/compiled/isotype_grid.vg.json +++ b/examples/compiled/isotype_grid.vg.json @@ -183,8 +183,7 @@ { "events": {"signal": "highlight_x"}, "update": "highlight_x[0] === highlight_x[1] ? null : invert(\"x\", highlight_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -240,8 +239,7 @@ { "events": {"signal": "highlight_y"}, "update": "highlight_y[0] === highlight_y[1] ? null : invert(\"y\", highlight_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -260,8 +258,7 @@ { "events": [{"signal": "highlight_col || highlight_row"}], "update": "highlight_col && highlight_row ? {unit: \"\", fields: highlight_tuple_fields, values: [highlight_col,highlight_row]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_bind_cylyr.vg.json b/examples/compiled/selection_bind_cylyr.vg.json index c2ca4c5008f..34cbb4e241b 100644 --- a/examples/compiled/selection_bind_cylyr.vg.json +++ b/examples/compiled/selection_bind_cylyr.vg.json @@ -35,7 +35,8 @@ { "events": [{"source": "scope", "type": "click"}], "update": "datum && item().mark.marktype !== 'group' ? datum[\"Year\"] : null" - } + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} ], "bind": {"input": "range", "min": 1969, "max": 1981, "step": 1} }, @@ -46,7 +47,8 @@ { "events": [{"source": "scope", "type": "click"}], "update": "datum && item().mark.marktype !== 'group' ? datum[\"Cylinders\"] : null" - } + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} ], "bind": {"input": "range", "min": 3, "max": 8, "step": 1} }, diff --git a/examples/compiled/selection_bind_origin.vg.json b/examples/compiled/selection_bind_origin.vg.json index 19a770bd22d..427dc287a97 100644 --- a/examples/compiled/selection_bind_origin.vg.json +++ b/examples/compiled/selection_bind_origin.vg.json @@ -34,7 +34,8 @@ { "events": [{"source": "scope", "type": "click"}], "update": "datum && item().mark.marktype !== 'group' ? datum[\"Origin\"] : null" - } + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} ], "bind": {"input": "select", "options": [null, "Europe", "Japan", "USA"]} }, diff --git a/examples/compiled/selection_brush_timeunit.vg.json b/examples/compiled/selection_brush_timeunit.vg.json index 6cd5dea6a34..933d6d21e8d 100644 --- a/examples/compiled/selection_brush_timeunit.vg.json +++ b/examples/compiled/selection_brush_timeunit.vg.json @@ -138,10 +138,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -161,10 +157,6 @@ { "events": [{"signal": "brush_seconds_date"}], "update": "brush_seconds_date ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_seconds_date]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_clear_brush.svg b/examples/compiled/selection_clear_brush.svg new file mode 100644 index 00000000000..09151706ad8 --- /dev/null +++ b/examples/compiled/selection_clear_brush.svg @@ -0,0 +1 @@ +34568Cylinders050100150200Horsepower01020304050Miles_per_Gallon \ No newline at end of file diff --git a/examples/compiled/selection_clear_brush.vg.json b/examples/compiled/selection_clear_brush.vg.json new file mode 100644 index 00000000000..25bb8ea5893 --- /dev/null +++ b/examples/compiled/selection_clear_brush.vg.json @@ -0,0 +1,444 @@ +{ + "$schema": "https://vega.github.io/schema/vega/v5.json", + "autosize": "pad", + "padding": 5, + "width": 200, + "height": 200, + "style": "cell", + "data": [ + {"name": "brush_store"}, + { + "name": "source_0", + "url": "data/cars.json", + "format": {"type": "json"}, + "transform": [ + { + "type": "filter", + "expr": "datum[\"Horsepower\"] !== null && !isNaN(datum[\"Horsepower\"]) && datum[\"Miles_per_Gallon\"] !== null && !isNaN(datum[\"Miles_per_Gallon\"])" + } + ] + } + ], + "signals": [ + { + "name": "unit", + "value": {}, + "on": [ + {"events": "mousemove", "update": "isTuple(group()) ? group() : unit"} + ] + }, + {"name": "brush", "update": "vlSelectionResolve(\"brush_store\")"}, + { + "name": "brush_x", + "init": "[scale(\"x\", 55), scale(\"x\", 160)]", + "on": [ + { + "events": { + "source": "scope", + "type": "mousedown", + "filter": [ + "!event.item || event.item.mark.name !== \"brush_brush\"" + ] + }, + "update": "[x(unit), x(unit)]" + }, + { + "events": { + "source": "window", + "type": "mousemove", + "consume": true, + "between": [ + { + "source": "scope", + "type": "mousedown", + "filter": [ + "!event.item || event.item.mark.name !== \"brush_brush\"" + ] + }, + {"source": "window", "type": "mouseup"} + ] + }, + "update": "[brush_x[0], clamp(x(unit), 0, width)]" + }, + { + "events": {"signal": "brush_scale_trigger"}, + "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" + }, + { + "events": {"signal": "brush_translate_delta"}, + "update": "clampRange(panLinear(brush_translate_anchor.extent_x, brush_translate_delta.x / span(brush_translate_anchor.extent_x)), 0, width)" + }, + { + "events": {"signal": "brush_zoom_delta"}, + "update": "clampRange(zoomLinear(brush_x, brush_zoom_anchor.x, brush_zoom_delta), 0, width)" + }, + {"events": [{"source": "scope", "type": "mouseup"}], "update": "[0, 0]"} + ] + }, + { + "name": "brush_Horsepower", + "init": "[55, 160]", + "on": [ + { + "events": {"signal": "brush_x"}, + "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" + } + ] + }, + { + "name": "brush_y", + "init": "[scale(\"y\", 13), scale(\"y\", 37)]", + "on": [ + { + "events": { + "source": "scope", + "type": "mousedown", + "filter": [ + "!event.item || event.item.mark.name !== \"brush_brush\"" + ] + }, + "update": "[y(unit), y(unit)]" + }, + { + "events": { + "source": "window", + "type": "mousemove", + "consume": true, + "between": [ + { + "source": "scope", + "type": "mousedown", + "filter": [ + "!event.item || event.item.mark.name !== \"brush_brush\"" + ] + }, + {"source": "window", "type": "mouseup"} + ] + }, + "update": "[brush_y[0], clamp(y(unit), 0, height)]" + }, + { + "events": {"signal": "brush_scale_trigger"}, + "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" + }, + { + "events": {"signal": "brush_translate_delta"}, + "update": "clampRange(panLinear(brush_translate_anchor.extent_y, brush_translate_delta.y / span(brush_translate_anchor.extent_y)), 0, height)" + }, + { + "events": {"signal": "brush_zoom_delta"}, + "update": "clampRange(zoomLinear(brush_y, brush_zoom_anchor.y, brush_zoom_delta), 0, height)" + }, + {"events": [{"source": "scope", "type": "mouseup"}], "update": "[0, 0]"} + ] + }, + { + "name": "brush_Miles_per_Gallon", + "init": "[13, 37]", + "on": [ + { + "events": {"signal": "brush_y"}, + "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" + } + ] + }, + { + "name": "brush_scale_trigger", + "value": {}, + "on": [ + { + "events": [{"scale": "x"}, {"scale": "y"}], + "update": "(!isArray(brush_Horsepower) || (+invert(\"x\", brush_x)[0] === +brush_Horsepower[0] && +invert(\"x\", brush_x)[1] === +brush_Horsepower[1])) && (!isArray(brush_Miles_per_Gallon) || (+invert(\"y\", brush_y)[0] === +brush_Miles_per_Gallon[0] && +invert(\"y\", brush_y)[1] === +brush_Miles_per_Gallon[1])) ? brush_scale_trigger : {}" + } + ] + }, + { + "name": "brush_tuple", + "init": "{unit: \"\", fields: brush_tuple_fields, values: [[55, 160], [13, 37]]}", + "on": [ + { + "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], + "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" + } + ] + }, + { + "name": "brush_tuple_fields", + "value": [ + {"field": "Horsepower", "channel": "x", "type": "R"}, + {"field": "Miles_per_Gallon", "channel": "y", "type": "R"} + ] + }, + { + "name": "brush_translate_anchor", + "value": {}, + "on": [ + { + "events": [ + {"source": "scope", "type": "mousedown", "markname": "brush_brush"} + ], + "update": "{x: x(unit), y: y(unit), extent_x: slice(brush_x), extent_y: slice(brush_y)}" + } + ] + }, + { + "name": "brush_translate_delta", + "value": {}, + "on": [ + { + "events": [ + { + "source": "window", + "type": "mousemove", + "consume": true, + "between": [ + { + "source": "scope", + "type": "mousedown", + "markname": "brush_brush" + }, + {"source": "window", "type": "mouseup"} + ] + } + ], + "update": "{x: brush_translate_anchor.x - x(unit), y: brush_translate_anchor.y - y(unit)}" + } + ] + }, + { + "name": "brush_zoom_anchor", + "on": [ + { + "events": [ + { + "source": "scope", + "type": "wheel", + "consume": true, + "markname": "brush_brush" + } + ], + "update": "{x: x(unit), y: y(unit)}" + } + ] + }, + { + "name": "brush_zoom_delta", + "on": [ + { + "events": [ + { + "source": "scope", + "type": "wheel", + "consume": true, + "markname": "brush_brush" + } + ], + "force": true, + "update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))" + } + ] + }, + { + "name": "brush_modify", + "update": "modify(\"brush_store\", brush_tuple, true)" + } + ], + "marks": [ + { + "name": "brush_brush_bg", + "type": "rect", + "clip": true, + "encode": { + "enter": {"fill": {"value": "#333"}, "fillOpacity": {"value": 0.125}}, + "update": { + "x": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_x[0]" + }, + {"value": 0} + ], + "y": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_y[0]" + }, + {"value": 0} + ], + "x2": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_x[1]" + }, + {"value": 0} + ], + "y2": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_y[1]" + }, + {"value": 0} + ] + } + } + }, + { + "name": "marks", + "type": "symbol", + "style": ["point"], + "from": {"data": "source_0"}, + "encode": { + "update": { + "opacity": {"value": 0.7}, + "fill": {"value": "transparent"}, + "stroke": [ + { + "test": "!(length(data(\"brush_store\"))) || (vlSelectionTest(\"brush_store\", datum))", + "scale": "color", + "field": "Cylinders" + }, + {"value": "grey"} + ], + "tooltip": { + "signal": "{\"Horsepower\": format(datum[\"Horsepower\"], \"\"), \"Miles_per_Gallon\": format(datum[\"Miles_per_Gallon\"], \"\"), \"Cylinders\": ''+datum[\"Cylinders\"]}" + }, + "x": {"scale": "x", "field": "Horsepower"}, + "y": {"scale": "y", "field": "Miles_per_Gallon"} + } + } + }, + { + "name": "brush_brush", + "type": "rect", + "clip": true, + "encode": { + "enter": {"fill": {"value": "transparent"}}, + "update": { + "x": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_x[0]" + }, + {"value": 0} + ], + "y": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_y[0]" + }, + {"value": 0} + ], + "x2": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_x[1]" + }, + {"value": 0} + ], + "y2": [ + { + "test": "data(\"brush_store\").length && data(\"brush_store\")[0].unit === \"\"", + "signal": "brush_y[1]" + }, + {"value": 0} + ], + "stroke": [ + { + "test": "brush_x[0] !== brush_x[1] && brush_y[0] !== brush_y[1]", + "value": "white" + }, + {"value": null} + ] + } + } + } + ], + "scales": [ + { + "name": "x", + "type": "linear", + "domain": {"data": "source_0", "field": "Horsepower"}, + "range": [0, {"signal": "width"}], + "nice": true, + "zero": true + }, + { + "name": "y", + "type": "linear", + "domain": {"data": "source_0", "field": "Miles_per_Gallon"}, + "range": [{"signal": "height"}, 0], + "nice": true, + "zero": true + }, + { + "name": "color", + "type": "ordinal", + "domain": {"data": "source_0", "field": "Cylinders", "sort": true}, + "range": "ordinal", + "interpolate": "hcl" + } + ], + "axes": [ + { + "scale": "x", + "orient": "bottom", + "grid": false, + "title": "Horsepower", + "labelFlush": true, + "labelOverlap": true, + "tickCount": {"signal": "ceil(width/40)"}, + "zindex": 1 + }, + { + "scale": "x", + "orient": "bottom", + "gridScale": "y", + "grid": true, + "tickCount": {"signal": "ceil(width/40)"}, + "domain": false, + "labels": false, + "maxExtent": 0, + "minExtent": 0, + "ticks": false, + "zindex": 0 + }, + { + "scale": "y", + "orient": "left", + "grid": false, + "title": "Miles_per_Gallon", + "labelOverlap": true, + "tickCount": {"signal": "ceil(height/40)"}, + "zindex": 1 + }, + { + "scale": "y", + "orient": "left", + "gridScale": "x", + "grid": true, + "tickCount": {"signal": "ceil(height/40)"}, + "domain": false, + "labels": false, + "maxExtent": 0, + "minExtent": 0, + "ticks": false, + "zindex": 0 + } + ], + "legends": [ + { + "stroke": "color", + "gradientLength": {"signal": "clamp(height, 64, 200)"}, + "symbolType": "circle", + "title": "Cylinders", + "encode": { + "symbols": { + "update": { + "fill": {"value": "transparent"}, + "opacity": {"value": 0.7} + } + } + } + } + ] +} diff --git a/examples/compiled/selection_clear_heatmap.svg b/examples/compiled/selection_clear_heatmap.svg new file mode 100644 index 00000000000..52179d482d3 --- /dev/null +++ b/examples/compiled/selection_clear_heatmap.svg @@ -0,0 +1 @@ +0510countABCpredictedABCactual \ No newline at end of file diff --git a/examples/compiled/selection_clear_heatmap.vg.json b/examples/compiled/selection_clear_heatmap.vg.json new file mode 100644 index 00000000000..bb51a3bb92c --- /dev/null +++ b/examples/compiled/selection_clear_heatmap.vg.json @@ -0,0 +1,154 @@ +{ + "$schema": "https://vega.github.io/schema/vega/v5.json", + "autosize": "pad", + "padding": 5, + "style": "cell", + "data": [ + {"name": "highlight_store"}, + { + "name": "source_0", + "values": [ + {"actual": "A", "predicted": "A", "count": 13}, + {"actual": "A", "predicted": "B", "count": 0}, + {"actual": "A", "predicted": "C", "count": 0}, + {"actual": "B", "predicted": "A", "count": 0}, + {"actual": "B", "predicted": "B", "count": 10}, + {"actual": "B", "predicted": "C", "count": 6}, + {"actual": "C", "predicted": "A", "count": 0}, + {"actual": "C", "predicted": "B", "count": 0}, + {"actual": "C", "predicted": "C", "count": 9} + ] + }, + { + "name": "data_0", + "source": "source_0", + "transform": [ + {"type": "identifier", "as": "_vgsid_"}, + { + "type": "filter", + "expr": "datum[\"count\"] !== null && !isNaN(datum[\"count\"])" + } + ] + } + ], + "signals": [ + {"name": "x_step", "value": 20}, + {"name": "width", "update": "bandspace(domain('x').length, 0, 0) * x_step"}, + {"name": "y_step", "value": 20}, + { + "name": "height", + "update": "bandspace(domain('y').length, 0, 0) * y_step" + }, + { + "name": "unit", + "value": {}, + "on": [ + {"events": "mousemove", "update": "isTuple(group()) ? group() : unit"} + ] + }, + {"name": "highlight", "update": "vlSelectionResolve(\"highlight_store\")"}, + { + "name": "highlight_tuple", + "on": [ + { + "events": [{"source": "scope", "type": "click"}], + "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: highlight_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", + "force": true + }, + {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + ] + }, + { + "name": "highlight_tuple_fields", + "value": [{"type": "E", "field": "_vgsid_"}] + }, + { + "name": "highlight_modify", + "update": "modify(\"highlight_store\", highlight_tuple, true)" + } + ], + "marks": [ + { + "name": "marks", + "type": "rect", + "style": ["bar"], + "from": {"data": "data_0"}, + "encode": { + "update": { + "fill": {"scale": "color", "field": "count"}, + "fillOpacity": [ + { + "test": "!(length(data(\"highlight_store\"))) || (vlSelectionTest(\"highlight_store\", datum))", + "value": 1 + }, + {"value": 0.5} + ], + "tooltip": { + "signal": "{\"actual\": ''+datum[\"actual\"], \"predicted\": ''+datum[\"predicted\"], \"count\": format(datum[\"count\"], \"\")}" + }, + "x": {"scale": "x", "field": "predicted"}, + "width": {"scale": "x", "band": true}, + "y": {"scale": "y", "field": "actual"}, + "height": {"scale": "y", "band": true} + } + } + } + ], + "scales": [ + { + "name": "x", + "type": "band", + "domain": {"data": "data_0", "field": "predicted", "sort": true}, + "range": {"step": {"signal": "x_step"}}, + "paddingInner": 0, + "paddingOuter": 0 + }, + { + "name": "y", + "type": "band", + "domain": {"data": "data_0", "field": "actual", "sort": true}, + "range": {"step": {"signal": "y_step"}}, + "paddingInner": 0, + "paddingOuter": 0 + }, + { + "name": "color", + "type": "linear", + "domain": {"data": "data_0", "field": "count"}, + "range": {"scheme": "plasma"}, + "interpolate": "hcl", + "zero": false + } + ], + "axes": [ + { + "scale": "x", + "orient": "bottom", + "grid": false, + "title": "predicted", + "labelAlign": "right", + "labelAngle": 270, + "labelBaseline": "middle", + "zindex": 1 + }, + { + "scale": "y", + "orient": "left", + "grid": false, + "title": "actual", + "zindex": 1 + } + ], + "legends": [ + { + "fill": "color", + "gradientLength": {"signal": "clamp(height, 64, 200)"}, + "symbolType": "circle", + "title": "count" + } + ], + "config": { + "axis": {"zindex": 0}, + "range": {"ramp": {"scheme": "yellowgreenblue"}} + } +} diff --git a/examples/compiled/selection_composition_and.vg.json b/examples/compiled/selection_composition_and.vg.json index 7bea2ac49be..81e1131323d 100644 --- a/examples/compiled/selection_composition_and.vg.json +++ b/examples/compiled/selection_composition_and.vg.json @@ -92,8 +92,7 @@ { "events": {"signal": "alex_x"}, "update": "alex_x[0] === alex_x[1] ? null : invert(\"x\", alex_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -150,8 +149,7 @@ { "events": {"signal": "alex_y"}, "update": "alex_y[0] === alex_y[1] ? null : invert(\"y\", alex_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -170,8 +168,7 @@ { "events": [{"signal": "alex_Cylinders || alex_Origin"}], "update": "alex_Cylinders && alex_Origin ? {unit: \"\", fields: alex_tuple_fields, values: [alex_Cylinders,alex_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -313,8 +310,7 @@ { "events": {"signal": "morgan_x"}, "update": "morgan_x[0] === morgan_x[1] ? null : invert(\"x\", morgan_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -371,8 +367,7 @@ { "events": {"signal": "morgan_y"}, "update": "morgan_y[0] === morgan_y[1] ? null : invert(\"y\", morgan_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -391,8 +386,7 @@ { "events": [{"signal": "morgan_Cylinders || morgan_Origin"}], "update": "morgan_Cylinders && morgan_Origin ? {unit: \"\", fields: morgan_tuple_fields, values: [morgan_Cylinders,morgan_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_composition_or.vg.json b/examples/compiled/selection_composition_or.vg.json index 603e52cb36e..91905a1503e 100644 --- a/examples/compiled/selection_composition_or.vg.json +++ b/examples/compiled/selection_composition_or.vg.json @@ -92,8 +92,7 @@ { "events": {"signal": "alex_x"}, "update": "alex_x[0] === alex_x[1] ? null : invert(\"x\", alex_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -150,8 +149,7 @@ { "events": {"signal": "alex_y"}, "update": "alex_y[0] === alex_y[1] ? null : invert(\"y\", alex_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -170,8 +168,7 @@ { "events": [{"signal": "alex_Cylinders || alex_Origin"}], "update": "alex_Cylinders && alex_Origin ? {unit: \"\", fields: alex_tuple_fields, values: [alex_Cylinders,alex_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -313,8 +310,7 @@ { "events": {"signal": "morgan_x"}, "update": "morgan_x[0] === morgan_x[1] ? null : invert(\"x\", morgan_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -371,8 +367,7 @@ { "events": {"signal": "morgan_y"}, "update": "morgan_y[0] === morgan_y[1] ? null : invert(\"y\", morgan_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -391,8 +386,7 @@ { "events": [{"signal": "morgan_Cylinders || morgan_Origin"}], "update": "morgan_Cylinders && morgan_Origin ? {unit: \"\", fields: morgan_tuple_fields, values: [morgan_Cylinders,morgan_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_concat.vg.json b/examples/compiled/selection_concat.vg.json index 0ee27cf45aa..30bc9002536 100644 --- a/examples/compiled/selection_concat.vg.json +++ b/examples/compiled/selection_concat.vg.json @@ -115,10 +115,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -178,10 +174,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_0_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -203,10 +195,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Horsepower"} ], "update": "brush_Miles_per_Gallon && brush_Horsepower ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -502,10 +490,6 @@ { "events": [{"signal": "grid_Displacement || grid_Acceleration"}], "update": "grid_Displacement && grid_Acceleration ? {unit: \"concat_1\", fields: grid_tuple_fields, values: [grid_Displacement,grid_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_filter.vg.json b/examples/compiled/selection_filter.vg.json index bc3bbf1d20f..33d44a8bc4e 100644 --- a/examples/compiled/selection_filter.vg.json +++ b/examples/compiled/selection_filter.vg.json @@ -112,10 +112,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -175,10 +171,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_0_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -200,10 +192,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_filter_composition.vg.json b/examples/compiled/selection_filter_composition.vg.json index cdcb7e8bbfc..fce9e7f2aba 100644 --- a/examples/compiled/selection_filter_composition.vg.json +++ b/examples/compiled/selection_filter_composition.vg.json @@ -112,10 +112,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"concat_0_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -175,10 +171,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"concat_0_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -200,10 +192,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"concat_0\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_interval_mark_style.vg.json b/examples/compiled/selection_interval_mark_style.vg.json index 0967cee44f9..944d98f9af0 100644 --- a/examples/compiled/selection_interval_mark_style.vg.json +++ b/examples/compiled/selection_interval_mark_style.vg.json @@ -92,8 +92,7 @@ { "events": {"signal": "alex_x"}, "update": "alex_x[0] === alex_x[1] ? null : invert(\"x\", alex_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -150,8 +149,7 @@ { "events": {"signal": "alex_y"}, "update": "alex_y[0] === alex_y[1] ? null : invert(\"y\", alex_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -170,8 +168,7 @@ { "events": [{"signal": "alex_Cylinders || alex_Origin"}], "update": "alex_Cylinders && alex_Origin ? {unit: \"\", fields: alex_tuple_fields, values: [alex_Cylinders,alex_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -313,8 +310,7 @@ { "events": {"signal": "morgan_x"}, "update": "morgan_x[0] === morgan_x[1] ? null : invert(\"x\", morgan_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -371,8 +367,7 @@ { "events": {"signal": "morgan_y"}, "update": "morgan_y[0] === morgan_y[1] ? null : invert(\"y\", morgan_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -391,8 +386,7 @@ { "events": [{"signal": "morgan_Cylinders || morgan_Origin"}], "update": "morgan_Cylinders && morgan_Origin ? {unit: \"\", fields: morgan_tuple_fields, values: [morgan_Cylinders,morgan_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_layer_bar_month.vg.json b/examples/compiled/selection_layer_bar_month.vg.json index 67764b4e875..88ef4d2ec29 100644 --- a/examples/compiled/selection_layer_bar_month.vg.json +++ b/examples/compiled/selection_layer_bar_month.vg.json @@ -120,8 +120,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -140,8 +139,7 @@ { "events": [{"signal": "brush_month_date"}], "update": "brush_month_date ? {unit: \"layer_0\", fields: brush_tuple_fields, values: [brush_month_date]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_multi_condition.vg.json b/examples/compiled/selection_multi_condition.vg.json index 3be064b1c94..f57234a7d74 100644 --- a/examples/compiled/selection_multi_condition.vg.json +++ b/examples/compiled/selection_multi_condition.vg.json @@ -91,8 +91,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -151,8 +150,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -171,8 +169,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_project_binned_interval.vg.json b/examples/compiled/selection_project_binned_interval.vg.json index 046c459bfd9..7ed03a5306a 100644 --- a/examples/compiled/selection_project_binned_interval.vg.json +++ b/examples/compiled/selection_project_binned_interval.vg.json @@ -140,8 +140,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -160,8 +159,7 @@ { "events": [{"signal": "brush_Acceleration"}], "update": "brush_Acceleration ? {unit: \"layer_0\", fields: brush_tuple_fields, values: [brush_Acceleration]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_project_interval.vg.json b/examples/compiled/selection_project_interval.vg.json index 7748dc7a900..5524d949ddc 100644 --- a/examples/compiled/selection_project_interval.vg.json +++ b/examples/compiled/selection_project_interval.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_x"}, "update": "pts_x[0] === pts_x[1] ? null : invert(\"x\", pts_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -142,8 +141,7 @@ { "events": {"signal": "pts_y"}, "update": "pts_y[0] === pts_y[1] ? null : invert(\"y\", pts_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -162,8 +160,7 @@ { "events": [{"signal": "pts_Cylinders || pts_Origin"}], "update": "pts_Cylinders && pts_Origin ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Cylinders,pts_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_project_interval_x.vg.json b/examples/compiled/selection_project_interval_x.vg.json index f3ade9e7ed8..67770bc193e 100644 --- a/examples/compiled/selection_project_interval_x.vg.json +++ b/examples/compiled/selection_project_interval_x.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_x"}, "update": "pts_x[0] === pts_x[1] ? null : invert(\"x\", pts_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -107,8 +106,7 @@ { "events": [{"signal": "pts_Cylinders"}], "update": "pts_Cylinders ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Cylinders]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_project_interval_x_y.vg.json b/examples/compiled/selection_project_interval_x_y.vg.json index 7748dc7a900..5524d949ddc 100644 --- a/examples/compiled/selection_project_interval_x_y.vg.json +++ b/examples/compiled/selection_project_interval_x_y.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_x"}, "update": "pts_x[0] === pts_x[1] ? null : invert(\"x\", pts_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -142,8 +141,7 @@ { "events": {"signal": "pts_y"}, "update": "pts_y[0] === pts_y[1] ? null : invert(\"y\", pts_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -162,8 +160,7 @@ { "events": [{"signal": "pts_Cylinders || pts_Origin"}], "update": "pts_Cylinders && pts_Origin ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Cylinders,pts_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_project_interval_y.vg.json b/examples/compiled/selection_project_interval_y.vg.json index 290e54055fd..85bd4cbaa09 100644 --- a/examples/compiled/selection_project_interval_y.vg.json +++ b/examples/compiled/selection_project_interval_y.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_y"}, "update": "pts_y[0] === pts_y[1] ? null : invert(\"y\", pts_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -107,8 +106,7 @@ { "events": [{"signal": "pts_Origin"}], "update": "pts_Origin ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_resolution_global.vg.json b/examples/compiled/selection_resolution_global.vg.json index 147da9a78bf..0a3ab64b93f 100644 --- a/examples/compiled/selection_resolution_global.vg.json +++ b/examples/compiled/selection_resolution_global.vg.json @@ -174,10 +174,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -237,10 +233,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -269,10 +261,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Horsepower"} ], "update": "brush_Miles_per_Gallon && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -592,10 +580,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -655,10 +639,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -685,10 +665,6 @@ { "events": [{"signal": "brush_Acceleration || brush_Horsepower"}], "update": "brush_Acceleration && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1008,10 +984,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1035,10 +1007,6 @@ { "events": [{"signal": "brush_Horsepower"}], "update": "brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1352,10 +1320,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1415,10 +1379,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1447,10 +1407,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Acceleration"} ], "update": "brush_Miles_per_Gallon && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1770,10 +1726,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1797,10 +1749,6 @@ { "events": [{"signal": "brush_Acceleration"}], "update": "brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2114,10 +2062,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2177,10 +2121,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2207,10 +2147,6 @@ { "events": [{"signal": "brush_Horsepower || brush_Acceleration"}], "update": "brush_Horsepower && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2530,10 +2466,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2557,10 +2489,6 @@ { "events": [{"signal": "brush_Miles_per_Gallon"}], "update": "brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2874,10 +2802,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2937,10 +2861,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2969,10 +2889,6 @@ {"signal": "brush_Acceleration || brush_Miles_per_Gallon"} ], "update": "brush_Acceleration && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3292,10 +3208,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3355,10 +3267,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3387,10 +3295,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_resolution_intersect.vg.json b/examples/compiled/selection_resolution_intersect.vg.json index 3b1b23955d8..2ec8223087a 100644 --- a/examples/compiled/selection_resolution_intersect.vg.json +++ b/examples/compiled/selection_resolution_intersect.vg.json @@ -177,10 +177,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -240,10 +236,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -272,10 +264,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Horsepower"} ], "update": "brush_Miles_per_Gallon && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -547,10 +535,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -610,10 +594,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -640,10 +620,6 @@ { "events": [{"signal": "brush_Acceleration || brush_Horsepower"}], "update": "brush_Acceleration && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -915,10 +891,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -942,10 +914,6 @@ { "events": [{"signal": "brush_Horsepower"}], "update": "brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1211,10 +1179,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1274,10 +1238,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1306,10 +1266,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Acceleration"} ], "update": "brush_Miles_per_Gallon && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1581,10 +1537,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1608,10 +1560,6 @@ { "events": [{"signal": "brush_Acceleration"}], "update": "brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1877,10 +1825,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1940,10 +1884,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1970,10 +1910,6 @@ { "events": [{"signal": "brush_Horsepower || brush_Acceleration"}], "update": "brush_Horsepower && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2245,10 +2181,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2272,10 +2204,6 @@ { "events": [{"signal": "brush_Miles_per_Gallon"}], "update": "brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2541,10 +2469,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2604,10 +2528,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2636,10 +2556,6 @@ {"signal": "brush_Acceleration || brush_Miles_per_Gallon"} ], "update": "brush_Acceleration && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2911,10 +2827,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2974,10 +2886,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3006,10 +2914,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_resolution_union.vg.json b/examples/compiled/selection_resolution_union.vg.json index 4f137bc37f7..b5f07ae62c5 100644 --- a/examples/compiled/selection_resolution_union.vg.json +++ b/examples/compiled/selection_resolution_union.vg.json @@ -177,10 +177,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -240,10 +236,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -272,10 +264,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Horsepower"} ], "update": "brush_Miles_per_Gallon && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -547,10 +535,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -610,10 +594,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -640,10 +620,6 @@ { "events": [{"signal": "brush_Acceleration || brush_Horsepower"}], "update": "brush_Acceleration && brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -915,10 +891,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Horsepower__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -942,10 +914,6 @@ { "events": [{"signal": "brush_Horsepower"}], "update": "brush_Horsepower ? {unit: \"child__repeat_row_Horsepower__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1211,10 +1179,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1274,10 +1238,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1306,10 +1266,6 @@ {"signal": "brush_Miles_per_Gallon || brush_Acceleration"} ], "update": "brush_Miles_per_Gallon && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1581,10 +1537,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1608,10 +1560,6 @@ { "events": [{"signal": "brush_Acceleration"}], "update": "brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1877,10 +1825,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1940,10 +1884,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Acceleration__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -1970,10 +1910,6 @@ { "events": [{"signal": "brush_Horsepower || brush_Acceleration"}], "update": "brush_Horsepower && brush_Acceleration ? {unit: \"child__repeat_row_Acceleration__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Acceleration]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2245,10 +2181,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2272,10 +2204,6 @@ { "events": [{"signal": "brush_Miles_per_Gallon"}], "update": "brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Miles_per_Gallon\", fields: brush_tuple_fields, values: [brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2541,10 +2469,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2604,10 +2528,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2636,10 +2556,6 @@ {"signal": "brush_Acceleration || brush_Miles_per_Gallon"} ], "update": "brush_Acceleration && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Acceleration\", fields: brush_tuple_fields, values: [brush_Acceleration,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2911,10 +2827,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -2974,10 +2886,6 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower_y\", brush_y)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -3006,10 +2914,6 @@ {"signal": "brush_Horsepower || brush_Miles_per_Gallon"} ], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"child__repeat_row_Miles_per_Gallon__repeat_column_Horsepower\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, diff --git a/examples/compiled/selection_translate_brush_drag.vg.json b/examples/compiled/selection_translate_brush_drag.vg.json index ec232f0e703..bf5d23a5fc2 100644 --- a/examples/compiled/selection_translate_brush_drag.vg.json +++ b/examples/compiled/selection_translate_brush_drag.vg.json @@ -84,8 +84,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -144,8 +143,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -164,8 +162,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_translate_brush_shift-drag.vg.json b/examples/compiled/selection_translate_brush_shift-drag.vg.json index 6e64bcb7e7b..934740eaed4 100644 --- a/examples/compiled/selection_translate_brush_shift-drag.vg.json +++ b/examples/compiled/selection_translate_brush_shift-drag.vg.json @@ -84,8 +84,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -144,8 +143,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -164,8 +162,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_translate_scatterplot_drag.vg.json b/examples/compiled/selection_translate_scatterplot_drag.vg.json index 7e6f909072a..367aa26054b 100644 --- a/examples/compiled/selection_translate_scatterplot_drag.vg.json +++ b/examples/compiled/selection_translate_scatterplot_drag.vg.json @@ -62,8 +62,7 @@ { "events": [{"signal": "grid_Horsepower || grid_Miles_per_Gallon"}], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json b/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json index 691b6df670b..114f00e49c0 100644 --- a/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json +++ b/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json @@ -62,8 +62,7 @@ { "events": [{"signal": "grid_Horsepower || grid_Miles_per_Gallon"}], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_type_interval.vg.json b/examples/compiled/selection_type_interval.vg.json index 7748dc7a900..5524d949ddc 100644 --- a/examples/compiled/selection_type_interval.vg.json +++ b/examples/compiled/selection_type_interval.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_x"}, "update": "pts_x[0] === pts_x[1] ? null : invert(\"x\", pts_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -142,8 +141,7 @@ { "events": {"signal": "pts_y"}, "update": "pts_y[0] === pts_y[1] ? null : invert(\"y\", pts_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -162,8 +160,7 @@ { "events": [{"signal": "pts_Cylinders || pts_Origin"}], "update": "pts_Cylinders && pts_Origin ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Cylinders,pts_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_type_interval_invert.vg.json b/examples/compiled/selection_type_interval_invert.vg.json index 38e5c772891..42c97aef1c2 100644 --- a/examples/compiled/selection_type_interval_invert.vg.json +++ b/examples/compiled/selection_type_interval_invert.vg.json @@ -87,8 +87,7 @@ { "events": {"signal": "pts_x"}, "update": "pts_x[0] === pts_x[1] ? null : invert(\"x\", pts_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -142,8 +141,7 @@ { "events": {"signal": "pts_y"}, "update": "pts_y[0] === pts_y[1] ? null : invert(\"y\", pts_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -162,8 +160,7 @@ { "events": [{"signal": "pts_Cylinders || pts_Origin"}], "update": "pts_Cylinders && pts_Origin ? {unit: \"\", fields: pts_tuple_fields, values: [pts_Cylinders,pts_Origin]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_type_single_mouseover.svg b/examples/compiled/selection_type_single_mouseover.svg new file mode 100644 index 00000000000..44e23cf4bad --- /dev/null +++ b/examples/compiled/selection_type_single_mouseover.svg @@ -0,0 +1 @@ +3108Count of Records34568CylindersEuropeJapanUSAOrigin \ No newline at end of file diff --git a/examples/compiled/selection_type_single_mouseover.vg.json b/examples/compiled/selection_type_single_mouseover.vg.json new file mode 100644 index 00000000000..3a481374c2e --- /dev/null +++ b/examples/compiled/selection_type_single_mouseover.vg.json @@ -0,0 +1,137 @@ +{ + "$schema": "https://vega.github.io/schema/vega/v5.json", + "autosize": "pad", + "padding": 5, + "style": "cell", + "data": [ + {"name": "pts_store"}, + { + "name": "source_0", + "url": "data/cars.json", + "format": {"type": "json"}, + "transform": [ + {"type": "identifier", "as": "_vgsid_"}, + { + "type": "aggregate", + "groupby": ["Origin", "Cylinders"], + "ops": ["count"], + "fields": [null], + "as": ["__count"] + }, + {"type": "identifier", "as": "_vgsid_"} + ] + } + ], + "signals": [ + {"name": "x_step", "value": 20}, + {"name": "width", "update": "bandspace(domain('x').length, 0, 0) * x_step"}, + {"name": "y_step", "value": 20}, + { + "name": "height", + "update": "bandspace(domain('y').length, 0, 0) * y_step" + }, + { + "name": "unit", + "value": {}, + "on": [ + {"events": "mousemove", "update": "isTuple(group()) ? group() : unit"} + ] + }, + {"name": "pts", "update": "vlSelectionResolve(\"pts_store\")"}, + { + "name": "pts_tuple", + "on": [ + { + "events": [{"source": "scope", "type": "mouseover"}], + "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", + "force": true + }, + {"events": [{"source": "scope", "type": "mouseout"}], "update": "null"} + ] + }, + {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, + {"name": "pts_modify", "update": "modify(\"pts_store\", pts_tuple, true)"} + ], + "marks": [ + { + "name": "marks", + "type": "rect", + "style": ["rect"], + "from": {"data": "source_0"}, + "encode": { + "update": { + "fill": [ + { + "test": "!(length(data(\"pts_store\"))) || (vlSelectionTest(\"pts_store\", datum))", + "scale": "color", + "field": "__count" + }, + {"value": "grey"} + ], + "tooltip": { + "signal": "{\"Origin\": ''+datum[\"Origin\"], \"Cylinders\": ''+datum[\"Cylinders\"], \"Count of Records\": format(datum[\"__count\"], \"\")}" + }, + "x": {"scale": "x", "field": "Cylinders"}, + "width": {"scale": "x", "band": true}, + "y": {"scale": "y", "field": "Origin"}, + "height": {"scale": "y", "band": true} + } + } + } + ], + "scales": [ + { + "name": "x", + "type": "band", + "domain": {"data": "source_0", "field": "Cylinders", "sort": true}, + "range": {"step": {"signal": "x_step"}}, + "paddingInner": 0, + "paddingOuter": 0 + }, + { + "name": "y", + "type": "band", + "domain": {"data": "source_0", "field": "Origin", "sort": true}, + "range": {"step": {"signal": "y_step"}}, + "paddingInner": 0, + "paddingOuter": 0 + }, + { + "name": "color", + "type": "linear", + "domain": {"data": "source_0", "field": "__count"}, + "range": "heatmap", + "interpolate": "hcl", + "zero": false + } + ], + "axes": [ + { + "scale": "x", + "orient": "bottom", + "grid": false, + "title": "Cylinders", + "labelAlign": "right", + "labelAngle": 270, + "labelBaseline": "middle", + "labelOverlap": true, + "zindex": 1 + }, + { + "scale": "y", + "orient": "left", + "grid": false, + "title": "Origin", + "labelOverlap": true, + "zindex": 1 + } + ], + "legends": [ + { + "fill": "color", + "gradientLength": {"signal": "clamp(height, 64, 200)"}, + "symbolType": "circle", + "title": "Count of Records" + } + ] +} diff --git a/examples/compiled/selection_zoom_brush_shift-wheel.vg.json b/examples/compiled/selection_zoom_brush_shift-wheel.vg.json index 64caff02de6..d870d74bdee 100644 --- a/examples/compiled/selection_zoom_brush_shift-wheel.vg.json +++ b/examples/compiled/selection_zoom_brush_shift-wheel.vg.json @@ -84,8 +84,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -144,8 +143,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -164,8 +162,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_zoom_brush_wheel.vg.json b/examples/compiled/selection_zoom_brush_wheel.vg.json index ec232f0e703..bf5d23a5fc2 100644 --- a/examples/compiled/selection_zoom_brush_wheel.vg.json +++ b/examples/compiled/selection_zoom_brush_wheel.vg.json @@ -84,8 +84,7 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -144,8 +143,7 @@ { "events": {"signal": "brush_y"}, "update": "brush_y[0] === brush_y[1] ? null : invert(\"y\", brush_y)" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { @@ -164,8 +162,7 @@ { "events": [{"signal": "brush_Horsepower || brush_Miles_per_Gallon"}], "update": "brush_Horsepower && brush_Miles_per_Gallon ? {unit: \"\", fields: brush_tuple_fields, values: [brush_Horsepower,brush_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json b/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json index e7e9f5b85e5..39670b3416d 100644 --- a/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json +++ b/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json @@ -62,8 +62,7 @@ { "events": [{"signal": "grid_Horsepower || grid_Miles_per_Gallon"}], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/selection_zoom_scatterplot_wheel.vg.json b/examples/compiled/selection_zoom_scatterplot_wheel.vg.json index 7e6f909072a..367aa26054b 100644 --- a/examples/compiled/selection_zoom_scatterplot_wheel.vg.json +++ b/examples/compiled/selection_zoom_scatterplot_wheel.vg.json @@ -62,8 +62,7 @@ { "events": [{"signal": "grid_Horsepower || grid_Miles_per_Gallon"}], "update": "grid_Horsepower && grid_Miles_per_Gallon ? {unit: \"\", fields: grid_tuple_fields, values: [grid_Horsepower,grid_Miles_per_Gallon]} : null" - }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + } ] }, { diff --git a/examples/compiled/trellis_selections.vg.json b/examples/compiled/trellis_selections.vg.json index 3b81f1173a1..91e190265a6 100644 --- a/examples/compiled/trellis_selections.vg.json +++ b/examples/compiled/trellis_selections.vg.json @@ -41,7 +41,8 @@ { "events": [{"source": "scope", "type": "mouseover"}], "update": "datum && item().mark.marktype !== 'group' ? (item().isVoronoi ? datum.datum : datum)[\"X\"] : null" - } + }, + {"events": [{"source": "scope", "type": "mouseout"}], "update": "null"} ], "bind": {"input": "number"} }, @@ -201,10 +202,6 @@ { "events": {"signal": "brush_x"}, "update": "brush_x[0] === brush_x[1] ? null : invert(\"x\", brush_x)" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -224,10 +221,6 @@ { "events": [{"signal": "brush_X"}], "update": "brush_X ? {unit: \"child\" + '__facet_column_' + (facet[\"Series\"]), fields: brush_tuple_fields, values: [brush_X]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] }, @@ -355,10 +348,6 @@ { "events": [{"signal": "grid_X || grid_Y"}], "update": "grid_X && grid_Y ? {unit: \"child\" + '__facet_column_' + (facet[\"Series\"]), fields: grid_tuple_fields, values: [grid_X,grid_Y]} : null" - }, - { - "events": [{"source": "scope", "type": "dblclick"}], - "update": "null" } ] },