From 68e9e441d91695e0c14b8da55364707073aca133 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Thu, 4 Aug 2022 15:11:16 +0000 Subject: [PATCH] chore: update examples [CI] --- examples/compiled/boxplot_1D_horizontal.vg.json | 8 +++++++- .../compiled/boxplot_1D_horizontal_custom_mark.vg.json | 8 +++++++- examples/compiled/boxplot_1D_horizontal_explicit.vg.json | 8 +++++++- examples/compiled/boxplot_1D_vertical.vg.json | 8 +++++++- examples/compiled/boxplot_2D_horizontal.vg.json | 8 +++++++- .../compiled/boxplot_2D_horizontal_color_size.vg.json | 8 +++++++- examples/compiled/boxplot_2D_vertical.vg.json | 9 ++++++++- .../boxplot_2D_vertical_single_per_group.vg.json | 8 +++++++- examples/compiled/boxplot_groupped.vg.json | 9 ++++++++- examples/compiled/boxplot_minmax_2D_horizontal.vg.json | 8 +++++++- ...lot_minmax_2D_horizontal_custom_midtick_color.vg.json | 8 +++++++- examples/compiled/boxplot_minmax_2D_vertical.vg.json | 9 ++++++++- examples/compiled/boxplot_tooltip_aggregate.vg.json | 8 +++++++- examples/compiled/boxplot_tooltip_not_aggregate.vg.json | 8 +++++++- examples/compiled/layer_boxplot_circle.vg.json | 8 +++++++- .../boxplot_1D_horizontal_custom_mark_normalized.vl.json | 5 +++++ .../boxplot_1D_horizontal_explicit_normalized.vl.json | 5 +++++ .../normalized/boxplot_1D_horizontal_normalized.vl.json | 5 +++++ .../normalized/boxplot_1D_vertical_normalized.vl.json | 5 +++++ .../boxplot_2D_horizontal_color_size_normalized.vl.json | 6 ++++++ .../normalized/boxplot_2D_horizontal_normalized.vl.json | 5 +++++ .../normalized/boxplot_2D_vertical_normalized.vl.json | 8 ++++++++ ...xplot_2D_vertical_single_per_group_normalized.vl.json | 5 +++++ .../specs/normalized/boxplot_groupped_normalized.vl.json | 7 +++++++ ...2D_horizontal_custom_midtick_color_normalized.vl.json | 5 +++++ .../boxplot_minmax_2D_horizontal_normalized.vl.json | 5 +++++ .../boxplot_minmax_2D_vertical_normalized.vl.json | 8 ++++++++ .../boxplot_tooltip_aggregate_normalized.vl.json | 5 +++++ .../boxplot_tooltip_not_aggregate_normalized.vl.json | 5 +++++ .../normalized/layer_boxplot_circle_normalized.vl.json | 5 +++++ 30 files changed, 192 insertions(+), 15 deletions(-) diff --git a/examples/compiled/boxplot_1D_horizontal.vg.json b/examples/compiled/boxplot_1D_horizontal.vg.json index 8399bd256f4..f76bc125a49 100644 --- a/examples/compiled/boxplot_1D_horizontal.vg.json +++ b/examples/compiled/boxplot_1D_horizontal.vg.json @@ -215,7 +215,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\")}" }, diff --git a/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json b/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json index 83fc349470b..85ca52c6420 100644 --- a/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json +++ b/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json @@ -267,7 +267,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "red"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "red" + }, + {"value": "red"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\")}" }, diff --git a/examples/compiled/boxplot_1D_horizontal_explicit.vg.json b/examples/compiled/boxplot_1D_horizontal_explicit.vg.json index 8399bd256f4..f76bc125a49 100644 --- a/examples/compiled/boxplot_1D_horizontal_explicit.vg.json +++ b/examples/compiled/boxplot_1D_horizontal_explicit.vg.json @@ -215,7 +215,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\")}" }, diff --git a/examples/compiled/boxplot_1D_vertical.vg.json b/examples/compiled/boxplot_1D_vertical.vg.json index ddafb2e29f9..f2d1e720be6 100644 --- a/examples/compiled/boxplot_1D_vertical.vg.json +++ b/examples/compiled/boxplot_1D_vertical.vg.json @@ -215,7 +215,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\")}" }, diff --git a/examples/compiled/boxplot_2D_horizontal.vg.json b/examples/compiled/boxplot_2D_horizontal.vg.json index 6b457a7c122..1ec407f3b6c 100644 --- a/examples/compiled/boxplot_2D_horizontal.vg.json +++ b/examples/compiled/boxplot_2D_horizontal.vg.json @@ -218,7 +218,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_2D_horizontal_color_size.vg.json b/examples/compiled/boxplot_2D_horizontal_color_size.vg.json index fa1e7460c29..cbe374faef1 100644 --- a/examples/compiled/boxplot_2D_horizontal_color_size.vg.json +++ b/examples/compiled/boxplot_2D_horizontal_color_size.vg.json @@ -218,7 +218,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "teal" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_2D_vertical.vg.json b/examples/compiled/boxplot_2D_vertical.vg.json index 4d8fe487197..0df969b47fc 100644 --- a/examples/compiled/boxplot_2D_vertical.vg.json +++ b/examples/compiled/boxplot_2D_vertical.vg.json @@ -218,7 +218,14 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "scale": "color", + "field": "Species" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_2D_vertical_single_per_group.vg.json b/examples/compiled/boxplot_2D_vertical_single_per_group.vg.json index 0c956676b1b..8cca8ee7473 100644 --- a/examples/compiled/boxplot_2D_vertical_single_per_group.vg.json +++ b/examples/compiled/boxplot_2D_vertical_single_per_group.vg.json @@ -200,7 +200,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_b'] >= datum['upper_box_b']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of b\": format(datum[\"max_b\"], \"\"), \"Q3 of b\": format(datum[\"upper_box_b\"], \"\"), \"Median of b\": format(datum[\"mid_box_b\"], \"\"), \"Q1 of b\": format(datum[\"lower_box_b\"], \"\"), \"Min of b\": format(datum[\"min_b\"], \"\"), \"a\": isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]}" }, diff --git a/examples/compiled/boxplot_groupped.vg.json b/examples/compiled/boxplot_groupped.vg.json index 4d5c0158521..2225fb9fb62 100644 --- a/examples/compiled/boxplot_groupped.vg.json +++ b/examples/compiled/boxplot_groupped.vg.json @@ -236,7 +236,14 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Acceleration'] >= datum['upper_box_Acceleration']", + "scale": "color", + "field": "Origin" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Acceleration\": format(datum[\"max_Acceleration\"], \"\"), \"Q3 of Acceleration\": format(datum[\"upper_box_Acceleration\"], \"\"), \"Median of Acceleration\": format(datum[\"mid_box_Acceleration\"], \"\"), \"Q1 of Acceleration\": format(datum[\"lower_box_Acceleration\"], \"\"), \"Min of Acceleration\": format(datum[\"min_Acceleration\"], \"\"), \"Cylinders\": isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"], \"Origin\": isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]}" }, diff --git a/examples/compiled/boxplot_minmax_2D_horizontal.vg.json b/examples/compiled/boxplot_minmax_2D_horizontal.vg.json index 1ebd2892bdd..c46400fa042 100644 --- a/examples/compiled/boxplot_minmax_2D_horizontal.vg.json +++ b/examples/compiled/boxplot_minmax_2D_horizontal.vg.json @@ -141,7 +141,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"upper_whisker_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"lower_whisker_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_minmax_2D_horizontal_custom_midtick_color.vg.json b/examples/compiled/boxplot_minmax_2D_horizontal_custom_midtick_color.vg.json index 8e14f41ab1a..e5aaa421f2b 100644 --- a/examples/compiled/boxplot_minmax_2D_horizontal_custom_midtick_color.vg.json +++ b/examples/compiled/boxplot_minmax_2D_horizontal_custom_midtick_color.vg.json @@ -141,7 +141,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "orange"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "orange" + }, + {"value": "orange"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"upper_whisker_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"lower_whisker_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_minmax_2D_vertical.vg.json b/examples/compiled/boxplot_minmax_2D_vertical.vg.json index c8445a58415..0eaa39c5092 100644 --- a/examples/compiled/boxplot_minmax_2D_vertical.vg.json +++ b/examples/compiled/boxplot_minmax_2D_vertical.vg.json @@ -141,7 +141,14 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "scale": "color", + "field": "Species" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"upper_whisker_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"lower_whisker_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/boxplot_tooltip_aggregate.vg.json b/examples/compiled/boxplot_tooltip_aggregate.vg.json index 8f8eb2afa1d..176d1dd9e11 100644 --- a/examples/compiled/boxplot_tooltip_aggregate.vg.json +++ b/examples/compiled/boxplot_tooltip_aggregate.vg.json @@ -216,7 +216,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": {"signal": "format(datum[\"mean_Body Mass (g)\"], \"\")"}, "xc": [ { diff --git a/examples/compiled/boxplot_tooltip_not_aggregate.vg.json b/examples/compiled/boxplot_tooltip_not_aggregate.vg.json index 17d3cd99648..c60159e15e9 100644 --- a/examples/compiled/boxplot_tooltip_not_aggregate.vg.json +++ b/examples/compiled/boxplot_tooltip_not_aggregate.vg.json @@ -219,7 +219,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of Body Mass (g)\": format(datum[\"max_Body Mass (g)\"], \"\"), \"Q3 of Body Mass (g)\": format(datum[\"upper_box_Body Mass (g)\"], \"\"), \"Median of Body Mass (g)\": format(datum[\"mid_box_Body Mass (g)\"], \"\"), \"Q1 of Body Mass (g)\": format(datum[\"lower_box_Body Mass (g)\"], \"\"), \"Min of Body Mass (g)\": format(datum[\"min_Body Mass (g)\"], \"\"), \"Species\": isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"]}" }, diff --git a/examples/compiled/layer_boxplot_circle.vg.json b/examples/compiled/layer_boxplot_circle.vg.json index 91b3571ebd2..819561b5848 100644 --- a/examples/compiled/layer_boxplot_circle.vg.json +++ b/examples/compiled/layer_boxplot_circle.vg.json @@ -183,7 +183,13 @@ "encode": { "update": { "opacity": {"value": 0.7}, - "fill": {"value": "white"}, + "fill": [ + { + "test": "datum['lower_box_people'] >= datum['upper_box_people']", + "value": "white" + }, + {"value": "white"} + ], "tooltip": { "signal": "{\"Max of population\": format(datum[\"max_people\"], \"\"), \"Q3 of population\": format(datum[\"upper_box_people\"], \"\"), \"Median of population\": format(datum[\"mid_box_people\"], \"\"), \"Q1 of population\": format(datum[\"lower_box_people\"], \"\"), \"Min of population\": format(datum[\"min_people\"], \"\"), \"age\": isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]}" }, diff --git a/examples/specs/normalized/boxplot_1D_horizontal_custom_mark_normalized.vl.json b/examples/specs/normalized/boxplot_1D_horizontal_custom_mark_normalized.vl.json index d35ff7f3327..032f15ce1e1 100644 --- a/examples/specs/normalized/boxplot_1D_horizontal_custom_mark_normalized.vl.json +++ b/examples/specs/normalized/boxplot_1D_horizontal_custom_mark_normalized.vl.json @@ -283,6 +283,11 @@ "title": "Body Mass (g)", "scale": {"zero": false} }, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_1D_horizontal_explicit_normalized.vl.json b/examples/specs/normalized/boxplot_1D_horizontal_explicit_normalized.vl.json index 9dacc22be64..407898db17d 100644 --- a/examples/specs/normalized/boxplot_1D_horizontal_explicit_normalized.vl.json +++ b/examples/specs/normalized/boxplot_1D_horizontal_explicit_normalized.vl.json @@ -221,6 +221,11 @@ "title": "Body Mass (g)", "scale": {"zero": false} }, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_1D_horizontal_normalized.vl.json b/examples/specs/normalized/boxplot_1D_horizontal_normalized.vl.json index 9dacc22be64..407898db17d 100644 --- a/examples/specs/normalized/boxplot_1D_horizontal_normalized.vl.json +++ b/examples/specs/normalized/boxplot_1D_horizontal_normalized.vl.json @@ -221,6 +221,11 @@ "title": "Body Mass (g)", "scale": {"zero": false} }, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_1D_vertical_normalized.vl.json b/examples/specs/normalized/boxplot_1D_vertical_normalized.vl.json index 9d2f8e16d4b..98ff76cf02e 100644 --- a/examples/specs/normalized/boxplot_1D_vertical_normalized.vl.json +++ b/examples/specs/normalized/boxplot_1D_vertical_normalized.vl.json @@ -221,6 +221,11 @@ "title": "Body Mass (g)", "scale": {"zero": false} }, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_2D_horizontal_color_size_normalized.vl.json b/examples/specs/normalized/boxplot_2D_horizontal_color_size_normalized.vl.json index 7730f82b447..ce5d0565ffb 100644 --- a/examples/specs/normalized/boxplot_2D_horizontal_color_size_normalized.vl.json +++ b/examples/specs/normalized/boxplot_2D_horizontal_color_size_normalized.vl.json @@ -233,6 +233,12 @@ }, "y": {"field": "Species", "type": "nominal"}, "size": {"value": 10}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "value": "teal" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_2D_horizontal_normalized.vl.json b/examples/specs/normalized/boxplot_2D_horizontal_normalized.vl.json index 76d77b1ae75..3e760167f42 100644 --- a/examples/specs/normalized/boxplot_2D_horizontal_normalized.vl.json +++ b/examples/specs/normalized/boxplot_2D_horizontal_normalized.vl.json @@ -229,6 +229,11 @@ "scale": {"zero": false} }, "y": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_2D_vertical_normalized.vl.json b/examples/specs/normalized/boxplot_2D_vertical_normalized.vl.json index 66dcf7d06c1..b8da2cf761d 100644 --- a/examples/specs/normalized/boxplot_2D_vertical_normalized.vl.json +++ b/examples/specs/normalized/boxplot_2D_vertical_normalized.vl.json @@ -231,6 +231,14 @@ "scale": {"zero": false} }, "x": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "field": "Species", + "type": "nominal", + "legend": null + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_2D_vertical_single_per_group_normalized.vl.json b/examples/specs/normalized/boxplot_2D_vertical_single_per_group_normalized.vl.json index a041df16a81..cc4f271410d 100644 --- a/examples/specs/normalized/boxplot_2D_vertical_single_per_group_normalized.vl.json +++ b/examples/specs/normalized/boxplot_2D_vertical_single_per_group_normalized.vl.json @@ -178,6 +178,11 @@ "encoding": { "y": {"field": "mid_box_b", "type": "quantitative", "title": "b"}, "x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}}, + "color": { + "condition": { + "test": "datum['lower_box_b'] >= datum['upper_box_b']" + } + }, "tooltip": [ {"field": "max_b", "type": "quantitative", "title": "Max of b"}, { diff --git a/examples/specs/normalized/boxplot_groupped_normalized.vl.json b/examples/specs/normalized/boxplot_groupped_normalized.vl.json index 778f4311617..e24f72ab9ff 100644 --- a/examples/specs/normalized/boxplot_groupped_normalized.vl.json +++ b/examples/specs/normalized/boxplot_groupped_normalized.vl.json @@ -234,6 +234,13 @@ }, "x": {"field": "Cylinders", "type": "nominal"}, "xOffset": {"field": "Origin", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Acceleration'] >= datum['upper_box_Acceleration']", + "field": "Origin", + "type": "nominal" + } + }, "tooltip": [ { "field": "max_Acceleration", diff --git a/examples/specs/normalized/boxplot_minmax_2D_horizontal_custom_midtick_color_normalized.vl.json b/examples/specs/normalized/boxplot_minmax_2D_horizontal_custom_midtick_color_normalized.vl.json index 83fc32340e7..9f9fa7adaf1 100644 --- a/examples/specs/normalized/boxplot_minmax_2D_horizontal_custom_midtick_color_normalized.vl.json +++ b/examples/specs/normalized/boxplot_minmax_2D_horizontal_custom_midtick_color_normalized.vl.json @@ -186,6 +186,11 @@ "scale": {"zero": false} }, "y": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "upper_whisker_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_minmax_2D_horizontal_normalized.vl.json b/examples/specs/normalized/boxplot_minmax_2D_horizontal_normalized.vl.json index 05892e98083..5719f41eda8 100644 --- a/examples/specs/normalized/boxplot_minmax_2D_horizontal_normalized.vl.json +++ b/examples/specs/normalized/boxplot_minmax_2D_horizontal_normalized.vl.json @@ -185,6 +185,11 @@ "scale": {"zero": false} }, "y": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "upper_whisker_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_minmax_2D_vertical_normalized.vl.json b/examples/specs/normalized/boxplot_minmax_2D_vertical_normalized.vl.json index 3258b8fd28d..0eb2a2daffb 100644 --- a/examples/specs/normalized/boxplot_minmax_2D_vertical_normalized.vl.json +++ b/examples/specs/normalized/boxplot_minmax_2D_vertical_normalized.vl.json @@ -186,6 +186,14 @@ "scale": {"zero": false} }, "x": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']", + "field": "Species", + "type": "nominal", + "legend": null + } + }, "tooltip": [ { "field": "upper_whisker_Body Mass (g)", diff --git a/examples/specs/normalized/boxplot_tooltip_aggregate_normalized.vl.json b/examples/specs/normalized/boxplot_tooltip_aggregate_normalized.vl.json index b56924dfd31..b8bc737dc18 100644 --- a/examples/specs/normalized/boxplot_tooltip_aggregate_normalized.vl.json +++ b/examples/specs/normalized/boxplot_tooltip_aggregate_normalized.vl.json @@ -204,6 +204,11 @@ "title": "Mean of Body Mass (g)", "type": "quantitative", "field": "mean_Body Mass (g)" + }, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } } } } diff --git a/examples/specs/normalized/boxplot_tooltip_not_aggregate_normalized.vl.json b/examples/specs/normalized/boxplot_tooltip_not_aggregate_normalized.vl.json index c5df6abe368..9842ca25412 100644 --- a/examples/specs/normalized/boxplot_tooltip_not_aggregate_normalized.vl.json +++ b/examples/specs/normalized/boxplot_tooltip_not_aggregate_normalized.vl.json @@ -230,6 +230,11 @@ "scale": {"zero": false} }, "y": {"field": "Species", "type": "nominal"}, + "color": { + "condition": { + "test": "datum['lower_box_Body Mass (g)'] >= datum['upper_box_Body Mass (g)']" + } + }, "tooltip": [ { "field": "max_Body Mass (g)", diff --git a/examples/specs/normalized/layer_boxplot_circle_normalized.vl.json b/examples/specs/normalized/layer_boxplot_circle_normalized.vl.json index fd12c7d0802..a8c676175fe 100644 --- a/examples/specs/normalized/layer_boxplot_circle_normalized.vl.json +++ b/examples/specs/normalized/layer_boxplot_circle_normalized.vl.json @@ -177,6 +177,11 @@ "title": "population" }, "y": {"field": "age", "type": "ordinal"}, + "color": { + "condition": { + "test": "datum['lower_box_people'] >= datum['upper_box_people']" + } + }, "tooltip": [ { "field": "max_people",