Skip to content

Commit

Permalink
chore: update examples [CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Aug 4, 2022
1 parent 1d023b5 commit 68e9e44
Show file tree
Hide file tree
Showing 30 changed files with 192 additions and 15 deletions.
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_1D_horizontal.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"], \"\")}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"], \"\")}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_1D_horizontal_explicit.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"], \"\")}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_1D_vertical.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"], \"\")}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_2D_horizontal.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_2D_horizontal_color_size.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
9 changes: 8 additions & 1 deletion examples/compiled/boxplot_2D_vertical.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
9 changes: 8 additions & 1 deletion examples/compiled/boxplot_groupped.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_minmax_2D_horizontal.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
9 changes: 8 additions & 1 deletion examples/compiled/boxplot_minmax_2D_vertical.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_tooltip_aggregate.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/boxplot_tooltip_not_aggregate.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
8 changes: 7 additions & 1 deletion examples/compiled/layer_boxplot_circle.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
{
Expand Down
7 changes: 7 additions & 0 deletions examples/specs/normalized/boxplot_groupped_normalized.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)']"
}
}
}
}
Expand Down
Loading

0 comments on commit 68e9e44

Please sign in to comment.