diff --git a/examples/compiled/bar_bullet_expr_bind.vg.json b/examples/compiled/bar_bullet_expr_bind.vg.json
index c23e4af0f5..c7372ba294 100644
--- a/examples/compiled/bar_bullet_expr_bind.vg.json
+++ b/examples/compiled/bar_bullet_expr_bind.vg.json
@@ -272,10 +272,10 @@
"description": {
"signal": "\"markers[0]: \" + (format(datum[\"markers.0\"], \"\"))"
},
+ "width": {"value": 2},
"xc": {"scale": "x", "field": "markers\\.0"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"signal": "height"},
- "width": {"value": 2}
+ "height": {"signal": "height"}
}
}
}
diff --git a/examples/compiled/bar_tooltip_aggregate.vg.json b/examples/compiled/bar_tooltip_aggregate.vg.json
index f4b9af25c1..da4eb402c7 100644
--- a/examples/compiled/bar_tooltip_aggregate.vg.json
+++ b/examples/compiled/bar_tooltip_aggregate.vg.json
@@ -39,10 +39,10 @@
"description": {
"signal": "\"Mean of data: \" + (format(datum[\"mean_data\"], \"\"))"
},
+ "height": {"value": 1},
"xc": {"signal": "width", "mult": 0.5},
- "yc": {"scale": "y", "field": "mean_data"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"mult": 0.75, "field": {"group": "width"}},
+ "yc": {"scale": "y", "field": "mean_data"}
}
}
}
diff --git a/examples/compiled/bar_tooltip_groupby.vg.json b/examples/compiled/bar_tooltip_groupby.vg.json
index d024f77b49..74e363efcd 100644
--- a/examples/compiled/bar_tooltip_groupby.vg.json
+++ b/examples/compiled/bar_tooltip_groupby.vg.json
@@ -41,10 +41,10 @@
"description": {
"signal": "\"Mean of data: \" + (format(datum[\"mean_data\"], \"\")) + \"; data: \" + (isValid(datum[\"data\"]) ? datum[\"data\"] : \"\"+datum[\"data\"])"
},
+ "height": {"value": 1},
"xc": {"signal": "width", "mult": 0.5},
- "yc": {"scale": "y", "field": "mean_data"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"mult": 0.75, "field": {"group": "width"}},
+ "yc": {"scale": "y", "field": "mean_data"}
}
}
}
diff --git a/examples/compiled/boxplot_1D_horizontal.vg.json b/examples/compiled/boxplot_1D_horizontal.vg.json
index b7dd924888..bcbf854d90 100644
--- a/examples/compiled/boxplot_1D_horizontal.vg.json
+++ b/examples/compiled/boxplot_1D_horizontal.vg.json
@@ -223,10 +223,10 @@
"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)\"], \"\")}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json b/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json
index 37c52929e7..3ecd0545df 100644
--- a/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json
+++ b/examples/compiled/boxplot_1D_horizontal_custom_mark.vg.json
@@ -211,10 +211,10 @@
"tooltip": {
"signal": "{\"Upper Whisker of Body Mass (g)\": format(datum[\"upper_whisker_Body Mass (g)\"], \"\"), \"Lower Whisker of Body Mass (g)\": format(datum[\"lower_whisker_Body Mass (g)\"], \"\")}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "lower_whisker_Body Mass (g)"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
},
@@ -231,10 +231,10 @@
"tooltip": {
"signal": "{\"Upper Whisker of Body Mass (g)\": format(datum[\"upper_whisker_Body Mass (g)\"], \"\"), \"Lower Whisker of Body Mass (g)\": format(datum[\"lower_whisker_Body Mass (g)\"], \"\")}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "upper_whisker_Body Mass (g)"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
},
@@ -273,10 +273,10 @@
"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)\"], \"\")}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_1D_horizontal_explicit.vg.json b/examples/compiled/boxplot_1D_horizontal_explicit.vg.json
index b7dd924888..bcbf854d90 100644
--- a/examples/compiled/boxplot_1D_horizontal_explicit.vg.json
+++ b/examples/compiled/boxplot_1D_horizontal_explicit.vg.json
@@ -223,10 +223,10 @@
"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)\"], \"\")}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_1D_invalid.vg.json b/examples/compiled/boxplot_1D_invalid.vg.json
index 9bca1863b7..7fc4148147 100644
--- a/examples/compiled/boxplot_1D_invalid.vg.json
+++ b/examples/compiled/boxplot_1D_invalid.vg.json
@@ -211,10 +211,10 @@
"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\": format(datum[\"a\"], \"\")}"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "a"},
- "yc": {"scale": "y", "field": "mid_box_b"},
"width": {"value": 14},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "mid_box_b"}
}
}
}
diff --git a/examples/compiled/boxplot_1D_vertical.vg.json b/examples/compiled/boxplot_1D_vertical.vg.json
index fcf60d6c8f..97015fba3d 100644
--- a/examples/compiled/boxplot_1D_vertical.vg.json
+++ b/examples/compiled/boxplot_1D_vertical.vg.json
@@ -223,10 +223,10 @@
"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)\"], \"\")}"
},
+ "height": {"value": 1},
"xc": {"signal": "width", "mult": 0.5},
- "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"},
"width": {"value": 14},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"}
}
}
}
diff --git a/examples/compiled/boxplot_2D_horizontal.vg.json b/examples/compiled/boxplot_2D_horizontal.vg.json
index 657e0434dd..9c81f7e5c1 100644
--- a/examples/compiled/boxplot_2D_horizontal.vg.json
+++ b/examples/compiled/boxplot_2D_horizontal.vg.json
@@ -226,10 +226,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_2D_horizontal_color_size.vg.json b/examples/compiled/boxplot_2D_horizontal_color_size.vg.json
index aa06950bc5..9480cbc09a 100644
--- a/examples/compiled/boxplot_2D_horizontal_color_size.vg.json
+++ b/examples/compiled/boxplot_2D_horizontal_color_size.vg.json
@@ -226,10 +226,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 10},
- "width": {"value": 1}
+ "height": {"value": 10}
}
}
}
diff --git a/examples/compiled/boxplot_2D_vertical.vg.json b/examples/compiled/boxplot_2D_vertical.vg.json
index d79f793f82..f17f165e36 100644
--- a/examples/compiled/boxplot_2D_vertical.vg.json
+++ b/examples/compiled/boxplot_2D_vertical.vg.json
@@ -226,10 +226,10 @@
"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\"]}"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "Species", "band": 0.5},
- "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"},
"width": {"value": 14},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"}
}
}
}
diff --git a/examples/compiled/boxplot_groupped.vg.json b/examples/compiled/boxplot_groupped.vg.json
index 71cd079b7d..5abf1ce3e3 100644
--- a/examples/compiled/boxplot_groupped.vg.json
+++ b/examples/compiled/boxplot_groupped.vg.json
@@ -244,14 +244,14 @@
"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\"]}"
},
+ "height": {"value": 1},
"xc": {
"scale": "x",
"field": "Cylinders",
"offset": {"scale": "xOffset", "field": "Origin", "band": 0.5}
},
- "yc": {"scale": "y", "field": "mid_box_Acceleration"},
"width": {"value": 14},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "mid_box_Acceleration"}
}
}
}
diff --git a/examples/compiled/boxplot_minmax_2D_horizontal.vg.json b/examples/compiled/boxplot_minmax_2D_horizontal.vg.json
index b6a8859e67..b936723cb8 100644
--- a/examples/compiled/boxplot_minmax_2D_horizontal.vg.json
+++ b/examples/compiled/boxplot_minmax_2D_horizontal.vg.json
@@ -149,10 +149,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
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 cbbf3ea904..80712bc0ac 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
@@ -149,10 +149,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_minmax_2D_vertical.vg.json b/examples/compiled/boxplot_minmax_2D_vertical.vg.json
index ebff85d15d..44aba7b4ee 100644
--- a/examples/compiled/boxplot_minmax_2D_vertical.vg.json
+++ b/examples/compiled/boxplot_minmax_2D_vertical.vg.json
@@ -149,10 +149,10 @@
"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\"]}"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "Species", "band": 0.5},
- "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"},
"width": {"value": 14},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "mid_box_Body Mass (g)"}
}
}
}
diff --git a/examples/compiled/boxplot_preaggregated.vg.json b/examples/compiled/boxplot_preaggregated.vg.json
index 90a007ded0..9b4442f4a3 100644
--- a/examples/compiled/boxplot_preaggregated.vg.json
+++ b/examples/compiled/boxplot_preaggregated.vg.json
@@ -134,10 +134,10 @@
"description": {
"signal": "\"median: \" + (format(datum[\"median\"], \"\")) + \"; Species: \" + (isValid(datum[\"Species\"]) ? datum[\"Species\"] : \"\"+datum[\"Species\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "median"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
},
diff --git a/examples/compiled/boxplot_tooltip_aggregate.vg.json b/examples/compiled/boxplot_tooltip_aggregate.vg.json
index 3639739c61..da2d60cdfa 100644
--- a/examples/compiled/boxplot_tooltip_aggregate.vg.json
+++ b/examples/compiled/boxplot_tooltip_aggregate.vg.json
@@ -222,10 +222,10 @@
"opacity": {"value": 0.7},
"fill": {"value": "white"},
"tooltip": {"signal": "format(datum[\"mean_Body Mass (g)\"], \"\")"},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/boxplot_tooltip_not_aggregate.vg.json b/examples/compiled/boxplot_tooltip_not_aggregate.vg.json
index fdc830314a..c9f943506c 100644
--- a/examples/compiled/boxplot_tooltip_not_aggregate.vg.json
+++ b/examples/compiled/boxplot_tooltip_not_aggregate.vg.json
@@ -227,10 +227,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_Body Mass (g)"},
"yc": {"scale": "y", "field": "Species", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
}
diff --git a/examples/compiled/errorbar_2d_vertical_ticks.png b/examples/compiled/errorbar_2d_vertical_ticks.png
index 8c4828d6a6..a5ac9cd539 100644
Binary files a/examples/compiled/errorbar_2d_vertical_ticks.png and b/examples/compiled/errorbar_2d_vertical_ticks.png differ
diff --git a/examples/compiled/errorbar_2d_vertical_ticks.svg b/examples/compiled/errorbar_2d_vertical_ticks.svg
index 6de06f9260..49ef22cd48 100644
--- a/examples/compiled/errorbar_2d_vertical_ticks.svg
+++ b/examples/compiled/errorbar_2d_vertical_ticks.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/errorbar_2d_vertical_ticks.vg.json b/examples/compiled/errorbar_2d_vertical_ticks.vg.json
index 35c3dd8558..476dce917f 100644
--- a/examples/compiled/errorbar_2d_vertical_ticks.vg.json
+++ b/examples/compiled/errorbar_2d_vertical_ticks.vg.json
@@ -69,10 +69,10 @@
"tooltip": {
"signal": "{\"Ci1 of Miles_per_Gallon\": format(datum[\"upper_Miles_per_Gallon\"], \"\"), \"Ci0 of Miles_per_Gallon\": format(datum[\"lower_Miles_per_Gallon\"], \"\"), \"Mean of Miles_per_Gallon\": format(datum[\"center_Miles_per_Gallon\"], \"\"), \"Year (year)\": timeFormat(datum[\"year_Year\"], '%b %d, %Y')}"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "year_Year"},
- "yc": {"scale": "y", "field": "lower_Miles_per_Gallon"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"value": 18},
+ "yc": {"scale": "y", "field": "lower_Miles_per_Gallon"}
}
}
},
@@ -89,10 +89,10 @@
"tooltip": {
"signal": "{\"Ci1 of Miles_per_Gallon\": format(datum[\"upper_Miles_per_Gallon\"], \"\"), \"Ci0 of Miles_per_Gallon\": format(datum[\"lower_Miles_per_Gallon\"], \"\"), \"Mean of Miles_per_Gallon\": format(datum[\"center_Miles_per_Gallon\"], \"\"), \"Year (year)\": timeFormat(datum[\"year_Year\"], '%b %d, %Y')}"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "year_Year"},
- "yc": {"scale": "y", "field": "upper_Miles_per_Gallon"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"value": 18},
+ "yc": {"scale": "y", "field": "upper_Miles_per_Gallon"}
}
}
},
diff --git a/examples/compiled/errorbar_aggregate.vg.json b/examples/compiled/errorbar_aggregate.vg.json
index 70df548211..a84dae2d2e 100644
--- a/examples/compiled/errorbar_aggregate.vg.json
+++ b/examples/compiled/errorbar_aggregate.vg.json
@@ -86,10 +86,10 @@
"description": {
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"min_people\"], \"\"))"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "age", "band": 0.5},
- "yc": {"scale": "y", "field": "min_people"},
"width": {"value": 5},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "min_people"}
}
}
},
@@ -105,10 +105,10 @@
"description": {
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"max_people\"], \"\"))"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "age", "band": 0.5},
- "yc": {"scale": "y", "field": "max_people"},
"width": {"value": 5},
- "height": {"value": 1}
+ "yc": {"scale": "y", "field": "max_people"}
}
}
},
diff --git a/examples/compiled/errorbar_horizontal_aggregate.vg.json b/examples/compiled/errorbar_horizontal_aggregate.vg.json
index e1c5a726d4..8eaf9a42b6 100644
--- a/examples/compiled/errorbar_horizontal_aggregate.vg.json
+++ b/examples/compiled/errorbar_horizontal_aggregate.vg.json
@@ -86,10 +86,10 @@
"description": {
"signal": "\"population: \" + (format(datum[\"min_people\"], \"\")) + \"; age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "min_people"},
"yc": {"scale": "y", "field": "age", "band": 0.5},
- "height": {"value": 5},
- "width": {"value": 1}
+ "height": {"value": 5}
}
}
},
@@ -105,10 +105,10 @@
"description": {
"signal": "\"population: \" + (format(datum[\"max_people\"], \"\")) + \"; age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "max_people"},
"yc": {"scale": "y", "field": "age", "band": 0.5},
- "height": {"value": 5},
- "width": {"value": 1}
+ "height": {"value": 5}
}
}
},
diff --git a/examples/compiled/facet_bullet.vg.json b/examples/compiled/facet_bullet.vg.json
index d594fea208..79fa44d160 100644
--- a/examples/compiled/facet_bullet.vg.json
+++ b/examples/compiled/facet_bullet.vg.json
@@ -437,10 +437,10 @@
"description": {
"signal": "\"markers[0]: \" + (format(datum[\"markers.0\"], \"\"))"
},
+ "width": {"value": 2},
"xc": {"scale": "child_x", "field": "markers\\.0"},
"yc": {"signal": "child_height", "mult": 0.5},
- "height": {"value": 15},
- "width": {"value": 2}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
}
diff --git a/examples/compiled/joinaggregate_mean_difference_by_year.png b/examples/compiled/joinaggregate_mean_difference_by_year.png
index 3c437b0a94..5b08a99401 100644
Binary files a/examples/compiled/joinaggregate_mean_difference_by_year.png and b/examples/compiled/joinaggregate_mean_difference_by_year.png differ
diff --git a/examples/compiled/joinaggregate_mean_difference_by_year.svg b/examples/compiled/joinaggregate_mean_difference_by_year.svg
index 3311d20410..0857afbef0 100644
--- a/examples/compiled/joinaggregate_mean_difference_by_year.svg
+++ b/examples/compiled/joinaggregate_mean_difference_by_year.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/joinaggregate_mean_difference_by_year.vg.json b/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
index 611937a644..0119003f8c 100644
--- a/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
+++ b/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
@@ -101,10 +101,10 @@
"description": {
"signal": "\"AverageYearRating: \" + (format(datum[\"AverageYearRating\"], \"\")) + \"; Title: \" + (isValid(datum[\"Title\"]) ? datum[\"Title\"] : \"\"+datum[\"Title\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "AverageYearRating"},
- "yc": {"scale": "y", "field": "Title", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "Title", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
}
diff --git a/examples/compiled/layer_bar_tick_datum_grouped.png b/examples/compiled/layer_bar_tick_datum_grouped.png
index 511353b2e1..0f05babec2 100644
Binary files a/examples/compiled/layer_bar_tick_datum_grouped.png and b/examples/compiled/layer_bar_tick_datum_grouped.png differ
diff --git a/examples/compiled/layer_bar_tick_datum_grouped.svg b/examples/compiled/layer_bar_tick_datum_grouped.svg
index 80c0081f37..7213124b99 100644
--- a/examples/compiled/layer_bar_tick_datum_grouped.svg
+++ b/examples/compiled/layer_bar_tick_datum_grouped.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/layer_bar_tick_datum_grouped.vg.json b/examples/compiled/layer_bar_tick_datum_grouped.vg.json
index 335a19cc9d..da4df5b7a9 100644
--- a/examples/compiled/layer_bar_tick_datum_grouped.vg.json
+++ b/examples/compiled/layer_bar_tick_datum_grouped.vg.json
@@ -72,14 +72,15 @@
"description": {
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"])"
},
- "xc": {
+ "height": {"value": 1},
+ "x": {
"scale": "x",
"field": "Cylinders",
- "offset": {"scale": "xOffset", "field": "Origin", "band": 0.5}
+ "offset": {"scale": "xOffset", "field": "Origin"},
+ "band": 0.125
},
- "yc": {"scale": "y", "value": 10},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"signal": "0.75 * bandwidth('xOffset')"},
+ "yc": {"scale": "y", "value": 10}
}
}
}
diff --git a/examples/compiled/layer_boxplot_circle.vg.json b/examples/compiled/layer_boxplot_circle.vg.json
index bf1b80bc52..bc6d37a67d 100644
--- a/examples/compiled/layer_boxplot_circle.vg.json
+++ b/examples/compiled/layer_boxplot_circle.vg.json
@@ -191,10 +191,10 @@
"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\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "mid_box_people"},
"yc": {"scale": "y", "field": "age", "band": 0.5},
- "height": {"value": 14},
- "width": {"value": 1}
+ "height": {"value": 14}
}
}
},
diff --git a/examples/compiled/layer_likert.png b/examples/compiled/layer_likert.png
index 27a90920e2..7780c5a826 100644
Binary files a/examples/compiled/layer_likert.png and b/examples/compiled/layer_likert.png differ
diff --git a/examples/compiled/layer_likert.svg b/examples/compiled/layer_likert.svg
index 2f39416374..d6ad221b36 100644
--- a/examples/compiled/layer_likert.svg
+++ b/examples/compiled/layer_likert.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/layer_likert.vg.json b/examples/compiled/layer_likert.vg.json
index 2de2020aba..6bb23d3ab9 100644
--- a/examples/compiled/layer_likert.vg.json
+++ b/examples/compiled/layer_likert.vg.json
@@ -271,7 +271,7 @@
"signal": "\"value: \" + (format(datum[\"value\"], \"\")) + \"; name: \" + (isValid(datum[\"name\"]) ? datum[\"name\"] : \"\"+datum[\"name\"]) + \"; Number of Ratings: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "value"},
- "y": {"scale": "y", "field": "name"},
+ "y": {"scale": "y", "field": "name", "band": 0.5},
"size": {"scale": "size", "field": "__count"},
"shape": {"value": "circle"}
}
@@ -290,10 +290,10 @@
"description": {
"signal": "\"median: \" + (format(datum[\"median\"], \"\")) + \"; name: \" + (isValid(datum[\"name\"]) ? datum[\"name\"] : \"\"+datum[\"name\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "median"},
- "yc": {"scale": "y", "field": "name"},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "name", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
},
@@ -310,7 +310,7 @@
"signal": "\"name: \" + (isValid(datum[\"name\"]) ? datum[\"name\"] : \"\"+datum[\"name\"]) + \"; lo: \" + (isValid(datum[\"lo\"]) ? datum[\"lo\"] : \"\"+datum[\"lo\"])"
},
"x": {"value": -5},
- "y": {"scale": "y", "field": "name"},
+ "y": {"scale": "y", "field": "name", "band": 0.5},
"text": {
"signal": "isValid(datum[\"lo\"]) ? datum[\"lo\"] : \"\"+datum[\"lo\"]"
},
@@ -331,7 +331,7 @@
"signal": "\"name: \" + (isValid(datum[\"name\"]) ? datum[\"name\"] : \"\"+datum[\"name\"]) + \"; hi: \" + (isValid(datum[\"hi\"]) ? datum[\"hi\"] : \"\"+datum[\"hi\"])"
},
"x": {"value": 255},
- "y": {"scale": "y", "field": "name"},
+ "y": {"scale": "y", "field": "name", "band": 0.5},
"text": {
"signal": "isValid(datum[\"hi\"]) ? datum[\"hi\"] : \"\"+datum[\"hi\"]"
},
@@ -350,7 +350,7 @@
},
{
"name": "y",
- "type": "point",
+ "type": "band",
"domain": {
"fields": [
{"data": "data_1", "field": "name"},
@@ -359,7 +359,8 @@
]
},
"range": [0, {"signal": "height"}],
- "padding": 0.5
+ "paddingInner": 0,
+ "paddingOuter": 0
},
{
"name": "size",
diff --git a/examples/compiled/layer_point_errorbar_2d_horizontal_color_encoding.vg.json b/examples/compiled/layer_point_errorbar_2d_horizontal_color_encoding.vg.json
index eea7d71aef..f5c5692ae7 100644
--- a/examples/compiled/layer_point_errorbar_2d_horizontal_color_encoding.vg.json
+++ b/examples/compiled/layer_point_errorbar_2d_horizontal_color_encoding.vg.json
@@ -84,10 +84,10 @@
"tooltip": {
"signal": "{\"Mean of yield\": format(datum[\"center_yield\"], \"\"), \"Mean + stderr of yield\": format(datum[\"upper_yield\"], \"\"), \"Mean - stderr of yield\": format(datum[\"lower_yield\"], \"\"), \"variety\": isValid(datum[\"variety\"]) ? datum[\"variety\"] : \"\"+datum[\"variety\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "lower_yield"},
- "yc": {"scale": "y", "field": "variety", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "variety", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
},
@@ -104,10 +104,10 @@
"tooltip": {
"signal": "{\"Mean of yield\": format(datum[\"center_yield\"], \"\"), \"Mean + stderr of yield\": format(datum[\"upper_yield\"], \"\"), \"Mean - stderr of yield\": format(datum[\"lower_yield\"], \"\"), \"variety\": isValid(datum[\"variety\"]) ? datum[\"variety\"] : \"\"+datum[\"variety\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "upper_yield"},
- "yc": {"scale": "y", "field": "variety", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "variety", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
},
diff --git a/examples/compiled/layer_point_errorbar_2d_horizontal_custom_ticks.vg.json b/examples/compiled/layer_point_errorbar_2d_horizontal_custom_ticks.vg.json
index b36cf09ebf..46da662860 100644
--- a/examples/compiled/layer_point_errorbar_2d_horizontal_custom_ticks.vg.json
+++ b/examples/compiled/layer_point_errorbar_2d_horizontal_custom_ticks.vg.json
@@ -84,10 +84,10 @@
"tooltip": {
"signal": "{\"Mean of yield\": format(datum[\"center_yield\"], \"\"), \"Mean + stderr of yield\": format(datum[\"upper_yield\"], \"\"), \"Mean - stderr of yield\": format(datum[\"lower_yield\"], \"\"), \"variety\": isValid(datum[\"variety\"]) ? datum[\"variety\"] : \"\"+datum[\"variety\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "lower_yield"},
- "yc": {"scale": "y", "field": "variety", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "variety", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
},
@@ -104,10 +104,10 @@
"tooltip": {
"signal": "{\"Mean of yield\": format(datum[\"center_yield\"], \"\"), \"Mean + stderr of yield\": format(datum[\"upper_yield\"], \"\"), \"Mean - stderr of yield\": format(datum[\"lower_yield\"], \"\"), \"variety\": isValid(datum[\"variety\"]) ? datum[\"variety\"] : \"\"+datum[\"variety\"]}"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "upper_yield"},
- "yc": {"scale": "y", "field": "variety", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "variety", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
},
diff --git a/examples/compiled/parallel_coordinate.vg.json b/examples/compiled/parallel_coordinate.vg.json
index 657a014d4b..cd6854ae43 100644
--- a/examples/compiled/parallel_coordinate.vg.json
+++ b/examples/compiled/parallel_coordinate.vg.json
@@ -151,10 +151,10 @@
"description": {
"signal": "\"key: \" + (isValid(datum[\"key\"]) ? datum[\"key\"] : \"\"+datum[\"key\"])"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "key", "band": 0.5},
- "yc": {"value": 0},
"width": {"value": 8},
- "height": {"value": 1}
+ "yc": {"value": 0}
}
}
},
@@ -188,10 +188,10 @@
"description": {
"signal": "\"key: \" + (isValid(datum[\"key\"]) ? datum[\"key\"] : \"\"+datum[\"key\"])"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "key", "band": 0.5},
- "yc": {"value": 150},
"width": {"value": 8},
- "height": {"value": 1}
+ "yc": {"value": 150}
}
}
},
@@ -225,10 +225,10 @@
"description": {
"signal": "\"key: \" + (isValid(datum[\"key\"]) ? datum[\"key\"] : \"\"+datum[\"key\"])"
},
+ "height": {"value": 1},
"xc": {"scale": "x", "field": "key", "band": 0.5},
- "yc": {"value": 300},
"width": {"value": 8},
- "height": {"value": 1}
+ "yc": {"value": 300}
}
}
}
diff --git a/examples/compiled/tick_dot.vg.json b/examples/compiled/tick_dot.vg.json
index d8b575c0b5..83a0556a61 100644
--- a/examples/compiled/tick_dot.vg.json
+++ b/examples/compiled/tick_dot.vg.json
@@ -32,10 +32,10 @@
"description": {
"signal": "\"precipitation: \" + (format(datum[\"precipitation\"], \"\"))"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "precipitation"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
}
diff --git a/examples/compiled/tick_dot_thickness.png b/examples/compiled/tick_dot_thickness.png
index be571af076..371fa232c5 100644
Binary files a/examples/compiled/tick_dot_thickness.png and b/examples/compiled/tick_dot_thickness.png differ
diff --git a/examples/compiled/tick_dot_thickness.svg b/examples/compiled/tick_dot_thickness.svg
index 676fc14a39..50ad2b9ddb 100644
--- a/examples/compiled/tick_dot_thickness.svg
+++ b/examples/compiled/tick_dot_thickness.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/tick_dot_thickness.vg.json b/examples/compiled/tick_dot_thickness.vg.json
index 962912839c..0c045d7ccd 100644
--- a/examples/compiled/tick_dot_thickness.vg.json
+++ b/examples/compiled/tick_dot_thickness.vg.json
@@ -32,10 +32,10 @@
"description": {
"signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\"))"
},
+ "width": {"value": 2},
"xc": {"scale": "x", "field": "Horsepower"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 10},
- "width": {"value": 2}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
}
diff --git a/examples/compiled/tick_grouped.png b/examples/compiled/tick_grouped.png
index 150178bcc2..c9328fa43c 100644
Binary files a/examples/compiled/tick_grouped.png and b/examples/compiled/tick_grouped.png differ
diff --git a/examples/compiled/tick_grouped.svg b/examples/compiled/tick_grouped.svg
index dc26685033..025c49e2c3 100644
--- a/examples/compiled/tick_grouped.svg
+++ b/examples/compiled/tick_grouped.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/tick_grouped.vg.json b/examples/compiled/tick_grouped.vg.json
index 2bb4b56c33..141a13adeb 100644
--- a/examples/compiled/tick_grouped.vg.json
+++ b/examples/compiled/tick_grouped.vg.json
@@ -31,7 +31,10 @@
}
],
"signals": [
- {"name": "x_step", "update": "20 * domain('xOffset').length / (1-0.2)"},
+ {
+ "name": "x_step",
+ "update": "20 * bandspace(domain('xOffset').length, 0, 0) / (1-0.2)"
+ },
{
"name": "width",
"update": "bandspace(domain('x').length, 0.2, 0.2) * x_step"
@@ -51,14 +54,15 @@
"description": {
"signal": "\"category: \" + (isValid(datum[\"category\"]) ? datum[\"category\"] : \"\"+datum[\"category\"]) + \"; value: \" + (format(datum[\"value\"], \"\")) + \"; group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"])"
},
- "xc": {
+ "height": {"value": 1},
+ "x": {
"scale": "x",
"field": "category",
- "offset": {"scale": "xOffset", "field": "group"}
+ "offset": {"scale": "xOffset", "field": "group"},
+ "band": 0.125
},
- "yc": {"scale": "y", "field": "value"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "width": {"signal": "0.75 * bandwidth('xOffset')"},
+ "yc": {"scale": "y", "field": "value"}
}
}
}
@@ -82,10 +86,9 @@
},
{
"name": "xOffset",
- "type": "point",
+ "type": "band",
"domain": {"data": "data_0", "field": "group", "sort": true},
- "range": {"step": 20},
- "paddingOuter": 0.5
+ "range": {"step": 20}
},
{
"name": "color",
diff --git a/examples/compiled/tick_histogram.png b/examples/compiled/tick_histogram.png
index 94a6e1a6f5..190ae345a2 100644
Binary files a/examples/compiled/tick_histogram.png and b/examples/compiled/tick_histogram.png differ
diff --git a/examples/compiled/tick_histogram.svg b/examples/compiled/tick_histogram.svg
index 62d86a7654..ca92051621 100644
--- a/examples/compiled/tick_histogram.svg
+++ b/examples/compiled/tick_histogram.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/tick_histogram.vg.json b/examples/compiled/tick_histogram.vg.json
index eed0cc921a..c59ea7d8d6 100644
--- a/examples/compiled/tick_histogram.vg.json
+++ b/examples/compiled/tick_histogram.vg.json
@@ -57,12 +57,18 @@
"description": {
"signal": "\"IMDB Rating (binned): \" + (!isValid(datum[\"bin_maxbins_10_IMDB Rating\"]) || !isFinite(+datum[\"bin_maxbins_10_IMDB Rating\"]) ? \"null\" : format(datum[\"bin_maxbins_10_IMDB Rating\"], \"\") + \" – \" + format(datum[\"bin_maxbins_10_IMDB Rating_end\"], \"\")) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
- "xc": {
- "signal": "scale(\"x\", 0.5 * datum[\"bin_maxbins_10_IMDB Rating\"] + 0.5 * datum[\"bin_maxbins_10_IMDB Rating_end\"])"
+ "height": {"value": 1},
+ "x2": {
+ "scale": "x",
+ "field": "bin_maxbins_10_IMDB Rating",
+ "offset": 0.5
},
- "yc": {"scale": "y", "field": "__count"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "x": {
+ "scale": "x",
+ "field": "bin_maxbins_10_IMDB Rating_end",
+ "offset": 0.5
+ },
+ "yc": {"scale": "y", "field": "__count"}
}
}
}
diff --git a/examples/compiled/tick_month_histogram.png b/examples/compiled/tick_month_histogram.png
index 6687d7176c..4ba6835728 100644
Binary files a/examples/compiled/tick_month_histogram.png and b/examples/compiled/tick_month_histogram.png differ
diff --git a/examples/compiled/tick_month_histogram.svg b/examples/compiled/tick_month_histogram.svg
index b2d131b72a..e8cada5efe 100644
--- a/examples/compiled/tick_month_histogram.svg
+++ b/examples/compiled/tick_month_histogram.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/tick_month_histogram.vg.json b/examples/compiled/tick_month_histogram.vg.json
index 9e16402e8a..6c35b6fe78 100644
--- a/examples/compiled/tick_month_histogram.vg.json
+++ b/examples/compiled/tick_month_histogram.vg.json
@@ -20,7 +20,7 @@
},
{
"type": "aggregate",
- "groupby": ["month_date"],
+ "groupby": ["month_date", "month_date_end"],
"ops": ["mean"],
"fields": ["precipitation"],
"as": ["mean_precipitation"]
@@ -45,10 +45,16 @@
"description": {
"signal": "\"date (month): \" + (timeFormat(datum[\"month_date\"], timeUnitSpecifier([\"month\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"}))) + \"; Mean of precipitation: \" + (format(datum[\"mean_precipitation\"], \"\"))"
},
- "xc": {"scale": "x", "field": "month_date"},
- "yc": {"scale": "y", "field": "mean_precipitation"},
- "width": {"value": 15},
- "height": {"value": 1}
+ "height": {"value": 1},
+ "x2": {
+ "signal": "scale(\"x\", 0.875 * datum[\"month_date\"] + 0.125 * datum[\"month_date_end\"])",
+ "offset": 0.5
+ },
+ "x": {
+ "signal": "scale(\"x\", 0.125 * datum[\"month_date\"] + 0.875 * datum[\"month_date_end\"])",
+ "offset": 0.5
+ },
+ "yc": {"scale": "y", "field": "mean_precipitation"}
}
}
}
@@ -57,7 +63,10 @@
{
"name": "x",
"type": "time",
- "domain": {"data": "source_0", "field": "month_date"},
+ "domain": {
+ "data": "source_0",
+ "fields": ["month_date", "month_date_end"]
+ },
"range": [0, {"signal": "width"}]
},
{
diff --git a/examples/compiled/tick_sort.vg.json b/examples/compiled/tick_sort.vg.json
index e54fb4aed0..df72b433e0 100644
--- a/examples/compiled/tick_sort.vg.json
+++ b/examples/compiled/tick_sort.vg.json
@@ -32,10 +32,10 @@
"description": {
"signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\"))"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "Horsepower"},
"yc": {"signal": "height", "mult": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "height": {"mult": 0.75, "field": {"group": "height"}}
}
}
}
diff --git a/examples/compiled/tick_strip.png b/examples/compiled/tick_strip.png
index 9740c3ffab..9d8fff5853 100644
Binary files a/examples/compiled/tick_strip.png and b/examples/compiled/tick_strip.png differ
diff --git a/examples/compiled/tick_strip.svg b/examples/compiled/tick_strip.svg
index d4d8749600..12dcc9a5ec 100644
--- a/examples/compiled/tick_strip.svg
+++ b/examples/compiled/tick_strip.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/tick_strip.vg.json b/examples/compiled/tick_strip.vg.json
index d27a6f5fb6..f4d4a5eb0c 100644
--- a/examples/compiled/tick_strip.vg.json
+++ b/examples/compiled/tick_strip.vg.json
@@ -20,10 +20,7 @@
],
"signals": [
{"name": "y_step", "value": 20},
- {
- "name": "height",
- "update": "bandspace(domain('y').length, 1, 0.5) * y_step"
- }
+ {"name": "height", "update": "bandspace(domain('y').length, 0, 0) * y_step"}
],
"marks": [
{
@@ -39,10 +36,10 @@
"description": {
"signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "Horsepower"},
- "yc": {"scale": "y", "field": "Cylinders"},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "Cylinders", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
}
@@ -58,10 +55,11 @@
},
{
"name": "y",
- "type": "point",
+ "type": "band",
"domain": {"data": "source_0", "field": "Cylinders", "sort": true},
"range": {"step": {"signal": "y_step"}},
- "padding": 0.5
+ "paddingInner": 0,
+ "paddingOuter": 0
}
],
"axes": [
diff --git a/examples/compiled/tick_strip_tick_band.vg.json b/examples/compiled/tick_strip_tick_band.vg.json
index 4302d64a9d..0ff09802b0 100644
--- a/examples/compiled/tick_strip_tick_band.vg.json
+++ b/examples/compiled/tick_strip_tick_band.vg.json
@@ -35,10 +35,10 @@
"description": {
"signal": "\"Horsepower: \" + (format(datum[\"Horsepower\"], \"\")) + \"; Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"])"
},
+ "width": {"value": 1},
"xc": {"scale": "x", "field": "Horsepower"},
- "yc": {"scale": "y", "field": "Cylinders", "band": 0.5},
- "height": {"value": 15},
- "width": {"value": 1}
+ "y": {"scale": "y", "field": "Cylinders", "band": 0.125},
+ "height": {"signal": "0.75 * bandwidth('y')"}
}
}
}