diff --git a/examples/compiled/arc_ordinal_theta.vg.json b/examples/compiled/arc_ordinal_theta.vg.json
index b8aed31ada8..d89f45594fd 100644
--- a/examples/compiled/arc_ordinal_theta.vg.json
+++ b/examples/compiled/arc_ordinal_theta.vg.json
@@ -57,7 +57,7 @@
"endAngle": {
"scale": "theta",
"field": "dir",
- "offset": {"scale": "theta", "band": 1}
+ "offset": {"signal": "max(0.25, bandwidth('theta'))"}
}
}
}
diff --git a/examples/compiled/bar.vg.json b/examples/compiled/bar.vg.json
index cf7d1e2bbca..a7403201ada 100644
--- a/examples/compiled/bar.vg.json
+++ b/examples/compiled/bar.vg.json
@@ -60,7 +60,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_aggregate.vg.json b/examples/compiled/bar_aggregate.vg.json
index 515e795f5ac..034f12aaf45 100644
--- a/examples/compiled/bar_aggregate.vg.json
+++ b/examples/compiled/bar_aggregate.vg.json
@@ -49,7 +49,7 @@
"x": {"scale": "x", "field": "sum_people"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_aggregate_format.vg.json b/examples/compiled/bar_aggregate_format.vg.json
index 9c2dab9cfc8..ef2b5a09f18 100644
--- a/examples/compiled/bar_aggregate_format.vg.json
+++ b/examples/compiled/bar_aggregate_format.vg.json
@@ -49,7 +49,7 @@
"x": {"scale": "x", "field": "sum_people"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_aggregate_sort_by_encoding.vg.json b/examples/compiled/bar_aggregate_sort_by_encoding.vg.json
index 281bdfeca83..de6fe777a04 100644
--- a/examples/compiled/bar_aggregate_sort_by_encoding.vg.json
+++ b/examples/compiled/bar_aggregate_sort_by_encoding.vg.json
@@ -53,7 +53,7 @@
"x": {"scale": "x", "field": "sum_people"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_aggregate_sort_mean.vg.json b/examples/compiled/bar_aggregate_sort_mean.vg.json
index 2acec08b42d..4973b4a9c25 100644
--- a/examples/compiled/bar_aggregate_sort_mean.vg.json
+++ b/examples/compiled/bar_aggregate_sort_mean.vg.json
@@ -53,7 +53,7 @@
"x": {"scale": "x", "field": "sum_people"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_aggregate_transform.vg.json b/examples/compiled/bar_aggregate_transform.vg.json
index 47ed9786bfb..2d3a70d9418 100644
--- a/examples/compiled/bar_aggregate_transform.vg.json
+++ b/examples/compiled/bar_aggregate_transform.vg.json
@@ -53,7 +53,7 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; mean_acc: \" + (format(datum[\"mean_acc\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_acc_end"},
"y2": {"scale": "y", "field": "mean_acc_start"}
}
diff --git a/examples/compiled/bar_aggregate_vertical.vg.json b/examples/compiled/bar_aggregate_vertical.vg.json
index 73ca1cd7937..4691e64ce7d 100644
--- a/examples/compiled/bar_aggregate_vertical.vg.json
+++ b/examples/compiled/bar_aggregate_vertical.vg.json
@@ -45,7 +45,7 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Mean of Acceleration: \" + (format(datum[\"mean_Acceleration\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_Acceleration"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_argmax.vg.json b/examples/compiled/bar_argmax.vg.json
index d3ad3245d94..13f7d7dd35e 100644
--- a/examples/compiled/bar_argmax.vg.json
+++ b/examples/compiled/bar_argmax.vg.json
@@ -51,7 +51,7 @@
},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "Major Genre"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_argmax_transform.vg.json b/examples/compiled/bar_argmax_transform.vg.json
index 87a4afbed9f..850047557f3 100644
--- a/examples/compiled/bar_argmax_transform.vg.json
+++ b/examples/compiled/bar_argmax_transform.vg.json
@@ -70,7 +70,7 @@
"field": "argmax_US_Gross\\.Production Budget\\._start"
},
"y": {"scale": "y", "field": "Major Genre"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_array_aggregate.vg.json b/examples/compiled/bar_array_aggregate.vg.json
index dfe641c48ec..6ff6f5ea89a 100644
--- a/examples/compiled/bar_array_aggregate.vg.json
+++ b/examples/compiled/bar_array_aggregate.vg.json
@@ -58,7 +58,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; Average of b: \" + (format(datum[\"average_b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "average_b"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_axis_orient.vg.json b/examples/compiled/bar_axis_orient.vg.json
index 1f5b146912f..53f11264610 100644
--- a/examples/compiled/bar_axis_orient.vg.json
+++ b/examples/compiled/bar_axis_orient.vg.json
@@ -71,7 +71,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_axis_space_saving.vg.json b/examples/compiled/bar_axis_space_saving.vg.json
index 5eaf09008ba..c204ae6671b 100644
--- a/examples/compiled/bar_axis_space_saving.vg.json
+++ b/examples/compiled/bar_axis_space_saving.vg.json
@@ -43,7 +43,7 @@
"x": {"scale": "x", "field": "__count"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "Origin", "offset": 5, "band": 0.25},
- "height": {"scale": "y", "band": 0.5}
+ "height": {"signal": "max(0.25, 0.5 * bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_color_disabled_scale.vg.json b/examples/compiled/bar_color_disabled_scale.vg.json
index 68c3a29ad3f..1f95862e5d8 100644
--- a/examples/compiled/bar_color_disabled_scale.vg.json
+++ b/examples/compiled/bar_color_disabled_scale.vg.json
@@ -54,7 +54,7 @@
"signal": "\"color: \" + (isValid(datum[\"color\"]) ? datum[\"color\"] : \"\"+datum[\"color\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "color"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_column_fold.vg.json b/examples/compiled/bar_column_fold.vg.json
index f197b99d3d8..77675fa56dc 100644
--- a/examples/compiled/bar_column_fold.vg.json
+++ b/examples/compiled/bar_column_fold.vg.json
@@ -138,7 +138,7 @@
"signal": "\"country: \" + (isValid(datum[\"country\"]) ? datum[\"country\"] : \"\"+datum[\"country\"]) + \"; value: \" + (format(datum[\"value\"], \"\"))"
},
"x": {"scale": "x", "field": "country"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_column_pivot.vg.json b/examples/compiled/bar_column_pivot.vg.json
index 3e69682af48..e66f5a1ea3e 100644
--- a/examples/compiled/bar_column_pivot.vg.json
+++ b/examples/compiled/bar_column_pivot.vg.json
@@ -65,7 +65,7 @@
"signal": "\"country: \" + (isValid(datum[\"country\"]) ? datum[\"country\"] : \"\"+datum[\"country\"]) + \"; gold: \" + (format(datum[\"gold\"], \"\"))"
},
"x": {"scale": "x", "field": "country"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "gold_end"},
"y2": {"scale": "y", "field": "gold_start"}
}
diff --git a/examples/compiled/bar_corner_radius_end.vg.json b/examples/compiled/bar_corner_radius_end.vg.json
index 64a6015a4f1..6c1a57b6147 100644
--- a/examples/compiled/bar_corner_radius_end.vg.json
+++ b/examples/compiled/bar_corner_radius_end.vg.json
@@ -63,7 +63,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min_b_start\"]),scale('y',datum[\"max_b_start\"]),scale('y',datum[\"min_b_end\"]),scale('y',datum[\"max_b_end\"]))"
},
diff --git a/examples/compiled/bar_count_minimap.vg.json b/examples/compiled/bar_count_minimap.vg.json
index 117eab54930..55686d7c9f2 100644
--- a/examples/compiled/bar_count_minimap.vg.json
+++ b/examples/compiled/bar_count_minimap.vg.json
@@ -92,7 +92,7 @@
"x": {"scale": "concat_0_x", "field": "__count"},
"x2": {"scale": "concat_0_x", "value": 0},
"y": {"scale": "concat_0_y", "field": "Name"},
- "height": {"scale": "concat_0_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_0_y'))"}
}
}
}
@@ -362,7 +362,7 @@
"x": {"scale": "concat_1_x", "field": "__count"},
"x2": {"scale": "concat_1_x", "value": 0},
"y": {"scale": "concat_1_y", "field": "Name"},
- "height": {"scale": "concat_1_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_1_y'))"}
}
}
},
diff --git a/examples/compiled/bar_custom_sort_full.vg.json b/examples/compiled/bar_custom_sort_full.vg.json
index 4cfa00cbdc1..7a444d9ab3a 100644
--- a/examples/compiled/bar_custom_sort_full.vg.json
+++ b/examples/compiled/bar_custom_sort_full.vg.json
@@ -60,7 +60,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_custom_sort_partial.vg.json b/examples/compiled/bar_custom_sort_partial.vg.json
index cc377031816..6828a9c6a4a 100644
--- a/examples/compiled/bar_custom_sort_partial.vg.json
+++ b/examples/compiled/bar_custom_sort_partial.vg.json
@@ -67,7 +67,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_default_tooltip_title_null.vg.json b/examples/compiled/bar_default_tooltip_title_null.vg.json
index 414e5a232d9..22a9c5dfb09 100644
--- a/examples/compiled/bar_default_tooltip_title_null.vg.json
+++ b/examples/compiled/bar_default_tooltip_title_null.vg.json
@@ -63,7 +63,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_distinct.vg.json b/examples/compiled/bar_distinct.vg.json
index 1eb0ce79b86..17721c53551 100644
--- a/examples/compiled/bar_distinct.vg.json
+++ b/examples/compiled/bar_distinct.vg.json
@@ -45,7 +45,7 @@
"signal": "\"Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Distinct of Name: \" + (format(datum[\"distinct_Name\"], \"\"))"
},
"x": {"scale": "x", "field": "Origin"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "distinct_Name"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_diverging_stack_population_pyramid.vg.json b/examples/compiled/bar_diverging_stack_population_pyramid.vg.json
index 4bf0a341e37..e0afae68d87 100644
--- a/examples/compiled/bar_diverging_stack_population_pyramid.vg.json
+++ b/examples/compiled/bar_diverging_stack_population_pyramid.vg.json
@@ -67,7 +67,7 @@
"x": {"scale": "x", "field": "sum_signed_people_end"},
"x2": {"scale": "x", "field": "sum_signed_people_start"},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_diverging_stack_transform.vg.json b/examples/compiled/bar_diverging_stack_transform.vg.json
index 950cdca34b0..499eb20a72a 100644
--- a/examples/compiled/bar_diverging_stack_transform.vg.json
+++ b/examples/compiled/bar_diverging_stack_transform.vg.json
@@ -312,7 +312,7 @@
"x": {"scale": "x", "field": "nx"},
"x2": {"scale": "x", "field": "nx2"},
"y": {"scale": "y", "field": "question"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_filter_calc.vg.json b/examples/compiled/bar_filter_calc.vg.json
index f16d151db1f..ddaf50dcb1a 100644
--- a/examples/compiled/bar_filter_calc.vg.json
+++ b/examples/compiled/bar_filter_calc.vg.json
@@ -62,7 +62,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b2: \" + (format(datum[\"b2\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b2_end"},
"y2": {"scale": "y", "field": "b2_start"}
}
diff --git a/examples/compiled/bar_fit.vg.json b/examples/compiled/bar_fit.vg.json
index 6abf452be92..bd1f49f6791 100644
--- a/examples/compiled/bar_fit.vg.json
+++ b/examples/compiled/bar_fit.vg.json
@@ -55,7 +55,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_gantt.vg.json b/examples/compiled/bar_gantt.vg.json
index 0379ed49f33..4fd65adfac1 100644
--- a/examples/compiled/bar_gantt.vg.json
+++ b/examples/compiled/bar_gantt.vg.json
@@ -48,7 +48,7 @@
"x": {"scale": "x", "field": "start"},
"x2": {"scale": "x", "field": "end"},
"y": {"scale": "y", "field": "task"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_grouped.vg.json b/examples/compiled/bar_grouped.vg.json
index efeaca1d2d7..23798b9f9d9 100644
--- a/examples/compiled/bar_grouped.vg.json
+++ b/examples/compiled/bar_grouped.vg.json
@@ -66,7 +66,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_custom_padding.vg.json b/examples/compiled/bar_grouped_custom_padding.vg.json
index 3ed25ccd142..b6916729ed3 100644
--- a/examples/compiled/bar_grouped_custom_padding.vg.json
+++ b/examples/compiled/bar_grouped_custom_padding.vg.json
@@ -63,7 +63,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_errorbar.vg.json b/examples/compiled/bar_grouped_errorbar.vg.json
index 7b8e24a0310..1e6a3ac463a 100644
--- a/examples/compiled/bar_grouped_errorbar.vg.json
+++ b/examples/compiled/bar_grouped_errorbar.vg.json
@@ -83,7 +83,7 @@
"field": "Cylinders",
"offset": {"scale": "xOffset", "field": "Origin"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "mean_Acceleration"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_grouped_facet.vg.json b/examples/compiled/bar_grouped_facet.vg.json
index 0b06ad59416..caa2f96c81a 100644
--- a/examples/compiled/bar_grouped_facet.vg.json
+++ b/examples/compiled/bar_grouped_facet.vg.json
@@ -131,7 +131,7 @@
"signal": "\"group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"]) + \"; value: \" + (format(datum[\"value\"], \"\"))"
},
"x": {"scale": "x", "field": "group"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_facet_independent_scale.vg.json b/examples/compiled/bar_grouped_facet_independent_scale.vg.json
index 8c49ce7ab98..61f5f87a69d 100644
--- a/examples/compiled/bar_grouped_facet_independent_scale.vg.json
+++ b/examples/compiled/bar_grouped_facet_independent_scale.vg.json
@@ -149,7 +149,7 @@
"signal": "\"group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"]) + \"; value: \" + (format(datum[\"value\"], \"\"))"
},
"x": {"scale": "child_x", "field": "group"},
- "width": {"scale": "child_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('child_x'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_facet_independent_scale_fixed_width.vg.json b/examples/compiled/bar_grouped_facet_independent_scale_fixed_width.vg.json
index b6b9bd06568..349601a689a 100644
--- a/examples/compiled/bar_grouped_facet_independent_scale_fixed_width.vg.json
+++ b/examples/compiled/bar_grouped_facet_independent_scale_fixed_width.vg.json
@@ -124,7 +124,7 @@
"signal": "\"group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"]) + \"; value: \" + (format(datum[\"value\"], \"\"))"
},
"x": {"scale": "child_x", "field": "group"},
- "width": {"scale": "child_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('child_x'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_fixed_width.vg.json b/examples/compiled/bar_grouped_fixed_width.vg.json
index 076a137a612..f0f2fb32396 100644
--- a/examples/compiled/bar_grouped_fixed_width.vg.json
+++ b/examples/compiled/bar_grouped_fixed_width.vg.json
@@ -57,7 +57,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_horizontal.vg.json b/examples/compiled/bar_grouped_horizontal.vg.json
index 04039a18e42..6de464a01be 100644
--- a/examples/compiled/bar_grouped_horizontal.vg.json
+++ b/examples/compiled/bar_grouped_horizontal.vg.json
@@ -68,7 +68,7 @@
"field": "category",
"offset": {"scale": "yOffset", "field": "group"}
},
- "height": {"scale": "yOffset", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('yOffset'))"}
}
}
}
diff --git a/examples/compiled/bar_grouped_label.vg.json b/examples/compiled/bar_grouped_label.vg.json
index 61d956bf587..99fad91d1bf 100644
--- a/examples/compiled/bar_grouped_label.vg.json
+++ b/examples/compiled/bar_grouped_label.vg.json
@@ -81,7 +81,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_repeated.vg.json b/examples/compiled/bar_grouped_repeated.vg.json
index 000c4479e52..8174ba5b62d 100644
--- a/examples/compiled/bar_grouped_repeated.vg.json
+++ b/examples/compiled/bar_grouped_repeated.vg.json
@@ -48,7 +48,7 @@
"field": "Major Genre",
"offset": {"scale": "xOffset", "value": "Worldwide Gross"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": [
{
"test": "!isValid(datum[\"sum_Worldwide Gross\"]) || !isFinite(+datum[\"sum_Worldwide Gross\"])",
@@ -77,7 +77,7 @@
"field": "Major Genre",
"offset": {"scale": "xOffset", "value": "US Gross"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": [
{
"test": "!isValid(datum[\"sum_US Gross\"]) || !isFinite(+datum[\"sum_US Gross\"])",
diff --git a/examples/compiled/bar_grouped_stacked.vg.json b/examples/compiled/bar_grouped_stacked.vg.json
index 19324562faf..727c32e6be8 100644
--- a/examples/compiled/bar_grouped_stacked.vg.json
+++ b/examples/compiled/bar_grouped_stacked.vg.json
@@ -66,7 +66,7 @@
"field": "Cylinders",
"offset": {"scale": "xOffset", "field": "Origin"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "sum_Weight_in_lbs_end"},
"y2": {"scale": "y", "field": "sum_Weight_in_lbs_start"}
}
diff --git a/examples/compiled/bar_grouped_step_for_offset.vg.json b/examples/compiled/bar_grouped_step_for_offset.vg.json
index e7f62bc9bf3..6b0296359ef 100644
--- a/examples/compiled/bar_grouped_step_for_offset.vg.json
+++ b/examples/compiled/bar_grouped_step_for_offset.vg.json
@@ -66,7 +66,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_step_for_position.vg.json b/examples/compiled/bar_grouped_step_for_position.vg.json
index 694e751e5f2..81bd6e3c9c0 100644
--- a/examples/compiled/bar_grouped_step_for_position.vg.json
+++ b/examples/compiled/bar_grouped_step_for_position.vg.json
@@ -63,7 +63,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/bar_grouped_thin.png b/examples/compiled/bar_grouped_thin.png
index c725ce84a4e..3185ae27930 100644
Binary files a/examples/compiled/bar_grouped_thin.png and b/examples/compiled/bar_grouped_thin.png differ
diff --git a/examples/compiled/bar_grouped_thin.svg b/examples/compiled/bar_grouped_thin.svg
index a19264e7192..dd02e406abb 100644
--- a/examples/compiled/bar_grouped_thin.svg
+++ b/examples/compiled/bar_grouped_thin.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/examples/compiled/bar_grouped_thin.vg.json b/examples/compiled/bar_grouped_thin.vg.json
index 9b4bdd09751..69c532b3bc8 100644
--- a/examples/compiled/bar_grouped_thin.vg.json
+++ b/examples/compiled/bar_grouped_thin.vg.json
@@ -45,7 +45,7 @@
"field": "Director",
"offset": {"scale": "xOffset", "field": "Title"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": [
{
"test": "!isValid(datum[\"mean_Rotten Tomatoes Rating\"]) || !isFinite(+datum[\"mean_Rotten Tomatoes Rating\"])",
diff --git a/examples/compiled/bar_layered_transparent.vg.json b/examples/compiled/bar_layered_transparent.vg.json
index 8b5bc6ef033..fbd9aa0f001 100644
--- a/examples/compiled/bar_layered_transparent.vg.json
+++ b/examples/compiled/bar_layered_transparent.vg.json
@@ -53,7 +53,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_month.vg.json b/examples/compiled/bar_month.vg.json
index 3fc56b15240..cdd3dacecf0 100644
--- a/examples/compiled/bar_month.vg.json
+++ b/examples/compiled/bar_month.vg.json
@@ -51,7 +51,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_precipitation"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_multi_values_per_categories.vg.json b/examples/compiled/bar_multi_values_per_categories.vg.json
index 8547fe96061..63d48a5175b 100644
--- a/examples/compiled/bar_multi_values_per_categories.vg.json
+++ b/examples/compiled/bar_multi_values_per_categories.vg.json
@@ -63,7 +63,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_negative.vg.json b/examples/compiled/bar_negative.vg.json
index 8f9e76b9f93..8965cdfe1dd 100644
--- a/examples/compiled/bar_negative.vg.json
+++ b/examples/compiled/bar_negative.vg.json
@@ -60,7 +60,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_negative_horizontal_label.vg.json b/examples/compiled/bar_negative_horizontal_label.vg.json
index 9d139addad2..96aa0dbd669 100644
--- a/examples/compiled/bar_negative_horizontal_label.vg.json
+++ b/examples/compiled/bar_negative_horizontal_label.vg.json
@@ -72,7 +72,7 @@
"x": {"scale": "x", "field": "b_end"},
"x2": {"scale": "x", "field": "b_start"},
"y": {"scale": "y", "field": "a"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/bar_params.vg.json b/examples/compiled/bar_params.vg.json
index 61233542720..3273c306424 100644
--- a/examples/compiled/bar_params.vg.json
+++ b/examples/compiled/bar_params.vg.json
@@ -64,7 +64,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min_b_start\"]),scale('y',datum[\"max_b_start\"]),scale('y',datum[\"min_b_end\"]),scale('y',datum[\"max_b_end\"]))"
},
diff --git a/examples/compiled/bar_params_bound.vg.json b/examples/compiled/bar_params_bound.vg.json
index 7e94ef9da6c..81146c10f5e 100644
--- a/examples/compiled/bar_params_bound.vg.json
+++ b/examples/compiled/bar_params_bound.vg.json
@@ -68,7 +68,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min_b_start\"]),scale('y',datum[\"max_b_start\"]),scale('y',datum[\"min_b_end\"]),scale('y',datum[\"max_b_end\"]))"
},
diff --git a/examples/compiled/bar_percent_of_total.vg.json b/examples/compiled/bar_percent_of_total.vg.json
index ed7365cc584..2258fe7f1df 100644
--- a/examples/compiled/bar_percent_of_total.vg.json
+++ b/examples/compiled/bar_percent_of_total.vg.json
@@ -69,7 +69,7 @@
"x": {"scale": "x", "field": "PercentOfTotal_end"},
"x2": {"scale": "x", "field": "PercentOfTotal_start"},
"y": {"scale": "y", "field": "Activity"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_size_default.vg.json b/examples/compiled/bar_size_default.vg.json
index 4e4a3593b74..a657e6fda50 100644
--- a/examples/compiled/bar_size_default.vg.json
+++ b/examples/compiled/bar_size_default.vg.json
@@ -41,7 +41,7 @@
"signal": "\"Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Origin"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_size_explicit_bad.vg.json b/examples/compiled/bar_size_explicit_bad.vg.json
index d27a388e218..564c59c4639 100644
--- a/examples/compiled/bar_size_explicit_bad.vg.json
+++ b/examples/compiled/bar_size_explicit_bad.vg.json
@@ -35,7 +35,7 @@
"signal": "\"Name: \" + (isValid(datum[\"Name\"]) ? datum[\"Name\"] : \"\"+datum[\"Name\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Name"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_size_fit.vg.json b/examples/compiled/bar_size_fit.vg.json
index 8e5ec39e8d8..aed17f50753 100644
--- a/examples/compiled/bar_size_fit.vg.json
+++ b/examples/compiled/bar_size_fit.vg.json
@@ -35,7 +35,7 @@
"signal": "\"Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Origin"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_size_responsive.vg.json b/examples/compiled/bar_size_responsive.vg.json
index 88cf30114bb..2ed53842341 100644
--- a/examples/compiled/bar_size_responsive.vg.json
+++ b/examples/compiled/bar_size_responsive.vg.json
@@ -47,7 +47,7 @@
"signal": "\"Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Number of Cars: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Origin"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_size_step_small.vg.json b/examples/compiled/bar_size_step_small.vg.json
index a31082143bb..4b49288a927 100644
--- a/examples/compiled/bar_size_step_small.vg.json
+++ b/examples/compiled/bar_size_step_small.vg.json
@@ -41,7 +41,7 @@
"signal": "\"Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Origin"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_sort_by_count.vg.json b/examples/compiled/bar_sort_by_count.vg.json
index 9d87c26a6ef..cec76baa9b7 100644
--- a/examples/compiled/bar_sort_by_count.vg.json
+++ b/examples/compiled/bar_sort_by_count.vg.json
@@ -42,7 +42,7 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/bar_swap_axes.vg.json b/examples/compiled/bar_swap_axes.vg.json
index 5f880827611..24c5aedd843 100644
--- a/examples/compiled/bar_swap_axes.vg.json
+++ b/examples/compiled/bar_swap_axes.vg.json
@@ -60,7 +60,7 @@
"x": {"scale": "x", "field": "average_b"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "a"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_swap_custom.vg.json b/examples/compiled/bar_swap_custom.vg.json
index 201bbdb74ad..4d8760930de 100644
--- a/examples/compiled/bar_swap_custom.vg.json
+++ b/examples/compiled/bar_swap_custom.vg.json
@@ -60,7 +60,7 @@
"x": {"scale": "x", "field": "average_b"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "a"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/bar_title.vg.json b/examples/compiled/bar_title.vg.json
index cac465ad90a..cef272a2d11 100644
--- a/examples/compiled/bar_title.vg.json
+++ b/examples/compiled/bar_title.vg.json
@@ -60,7 +60,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_title_start.vg.json b/examples/compiled/bar_title_start.vg.json
index 060cdc9c876..03fedcee383 100644
--- a/examples/compiled/bar_title_start.vg.json
+++ b/examples/compiled/bar_title_start.vg.json
@@ -60,7 +60,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_tooltip.vg.json b/examples/compiled/bar_tooltip.vg.json
index 2ab3ef1e597..5295344d5fb 100644
--- a/examples/compiled/bar_tooltip.vg.json
+++ b/examples/compiled/bar_tooltip.vg.json
@@ -61,7 +61,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_tooltip_multi.vg.json b/examples/compiled/bar_tooltip_multi.vg.json
index a1b3f4e40a6..6a35ed202d9 100644
--- a/examples/compiled/bar_tooltip_multi.vg.json
+++ b/examples/compiled/bar_tooltip_multi.vg.json
@@ -62,7 +62,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_tooltip_title.vg.json b/examples/compiled/bar_tooltip_title.vg.json
index 78c257643f4..4575f585dbc 100644
--- a/examples/compiled/bar_tooltip_title.vg.json
+++ b/examples/compiled/bar_tooltip_title.vg.json
@@ -62,7 +62,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\")) + \"; Field A: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; Field B: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/bar_x_offset_without_x_broken.vg.json b/examples/compiled/bar_x_offset_without_x_broken.vg.json
index 9fb6abcc67d..7224919868e 100644
--- a/examples/compiled/bar_x_offset_without_x_broken.vg.json
+++ b/examples/compiled/bar_x_offset_without_x_broken.vg.json
@@ -60,7 +60,7 @@
"signal": "\"value: \" + (format(datum[\"value\"], \"\")) + \"; group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"])"
},
"x": {"scale": "x", "field": "group"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/concat_bar_layer_circle.vg.json b/examples/compiled/concat_bar_layer_circle.vg.json
index cd91195e8de..4bdc186d2fa 100644
--- a/examples/compiled/concat_bar_layer_circle.vg.json
+++ b/examples/compiled/concat_bar_layer_circle.vg.json
@@ -315,7 +315,7 @@
"signal": "\"Major Genre: \" + (isValid(datum[\"Major Genre\"]) ? datum[\"Major Genre\"] : \"\"+datum[\"Major Genre\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "concat_1_x", "field": "Major Genre"},
- "width": {"scale": "concat_1_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_1_x'))"},
"y": {"scale": "concat_1_y", "field": "__count"},
"y2": {"scale": "concat_1_y", "value": 0}
}
diff --git a/examples/compiled/concat_population_pyramid.vg.json b/examples/compiled/concat_population_pyramid.vg.json
index 526faf05fb5..8e337a1fb8b 100644
--- a/examples/compiled/concat_population_pyramid.vg.json
+++ b/examples/compiled/concat_population_pyramid.vg.json
@@ -129,7 +129,7 @@
"x": {"scale": "concat_0_x", "field": "sum_people_end"},
"x2": {"scale": "concat_0_x", "field": "sum_people_start"},
"y": {"scale": "concat_0_y", "field": "age"},
- "height": {"scale": "concat_0_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_0_y'))"}
}
}
}
@@ -208,7 +208,7 @@
"x": {"scale": "concat_2_x", "field": "sum_people_end"},
"x2": {"scale": "concat_2_x", "field": "sum_people_start"},
"y": {"scale": "concat_2_y", "field": "age"},
- "height": {"scale": "concat_2_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_2_y'))"}
}
}
}
diff --git a/examples/compiled/concat_weather.vg.json b/examples/compiled/concat_weather.vg.json
index 416a30ea6c0..0df5e447537 100644
--- a/examples/compiled/concat_weather.vg.json
+++ b/examples/compiled/concat_weather.vg.json
@@ -138,7 +138,7 @@
"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\"], \"\"))"
},
"x": {"scale": "concat_0_x", "field": "month_date"},
- "width": {"scale": "concat_0_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_0_x'))"},
"y": {"scale": "concat_0_y", "field": "mean_precipitation"},
"y2": {"scale": "concat_0_y", "value": 0}
}
@@ -207,7 +207,7 @@
"signal": "\"date (month): \" + (timeFormat(datum[\"month_date\"], timeUnitSpecifier([\"month\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"}))) + \"; Median of precipitation: \" + (format(datum[\"median_precipitation\"], \"\"))"
},
"x": {"scale": "concat_1_x", "field": "month_date"},
- "width": {"scale": "concat_1_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_1_x'))"},
"y": {"scale": "concat_1_y", "field": "median_precipitation"},
"y2": {"scale": "concat_1_y", "value": 0}
}
diff --git a/examples/compiled/facet_cross_independent_scale.vg.json b/examples/compiled/facet_cross_independent_scale.vg.json
index ee46c02b89c..d6280b91b19 100644
--- a/examples/compiled/facet_cross_independent_scale.vg.json
+++ b/examples/compiled/facet_cross_independent_scale.vg.json
@@ -169,9 +169,9 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (isValid(datum[\"b\"]) ? datum[\"b\"] : \"\"+datum[\"b\"])"
},
"x": {"scale": "child_x", "field": "a"},
- "width": {"scale": "child_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('child_x'))"},
"y": {"scale": "child_y", "field": "b"},
- "height": {"scale": "child_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('child_y'))"}
}
}
}
diff --git a/examples/compiled/facet_custom.vg.json b/examples/compiled/facet_custom.vg.json
index 5435c574823..8efd0d24a60 100644
--- a/examples/compiled/facet_custom.vg.json
+++ b/examples/compiled/facet_custom.vg.json
@@ -151,7 +151,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/facet_custom_header.vg.json b/examples/compiled/facet_custom_header.vg.json
index 5435c574823..8efd0d24a60 100644
--- a/examples/compiled/facet_custom_header.vg.json
+++ b/examples/compiled/facet_custom_header.vg.json
@@ -151,7 +151,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/facet_grid_bar.vg.json b/examples/compiled/facet_grid_bar.vg.json
index c2264832a37..ffe8d7fbb69 100644
--- a/examples/compiled/facet_grid_bar.vg.json
+++ b/examples/compiled/facet_grid_bar.vg.json
@@ -192,7 +192,7 @@
"x": {"scale": "x", "field": "p_end"},
"x2": {"scale": "x", "field": "p_start"},
"y": {"scale": "y", "field": "c"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/facet_independent_scale.vg.json b/examples/compiled/facet_independent_scale.vg.json
index 16883e8863e..ec52febd7e1 100644
--- a/examples/compiled/facet_independent_scale.vg.json
+++ b/examples/compiled/facet_independent_scale.vg.json
@@ -146,7 +146,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "child_x", "field": "age"},
- "width": {"scale": "child_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('child_x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/hconcat_weather.vg.json b/examples/compiled/hconcat_weather.vg.json
index 8bb952d22fb..958915aad64 100644
--- a/examples/compiled/hconcat_weather.vg.json
+++ b/examples/compiled/hconcat_weather.vg.json
@@ -117,7 +117,7 @@
"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\"], \"\"))"
},
"x": {"scale": "concat_0_x", "field": "month_date"},
- "width": {"scale": "concat_0_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_0_x'))"},
"y": {"scale": "concat_0_y", "field": "mean_precipitation"},
"y2": {"scale": "concat_0_y", "value": 0}
}
diff --git a/examples/compiled/histogram_ordinal.vg.json b/examples/compiled/histogram_ordinal.vg.json
index 43b2f6e0fd8..1b11b8bd796 100644
--- a/examples/compiled/histogram_ordinal.vg.json
+++ b/examples/compiled/histogram_ordinal.vg.json
@@ -66,7 +66,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "bin_maxbins_10_IMDB Rating_range"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/histogram_ordinal_sort.vg.json b/examples/compiled/histogram_ordinal_sort.vg.json
index b0e3d9f849b..a31354fb066 100644
--- a/examples/compiled/histogram_ordinal_sort.vg.json
+++ b/examples/compiled/histogram_ordinal_sort.vg.json
@@ -72,7 +72,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "bin_maxbins_10_IMDB Rating_range"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/interactive_bar_select_highlight.vg.json b/examples/compiled/interactive_bar_select_highlight.vg.json
index 61090f65878..348178735ec 100644
--- a/examples/compiled/interactive_bar_select_highlight.vg.json
+++ b/examples/compiled/interactive_bar_select_highlight.vg.json
@@ -167,7 +167,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/interactive_concat_layer.vg.json b/examples/compiled/interactive_concat_layer.vg.json
index e73c94dd63d..46b90b6af89 100644
--- a/examples/compiled/interactive_concat_layer.vg.json
+++ b/examples/compiled/interactive_concat_layer.vg.json
@@ -317,7 +317,7 @@
"signal": "\"Major Genre: \" + (isValid(datum[\"Major Genre\"]) ? datum[\"Major Genre\"] : \"\"+datum[\"Major Genre\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "concat_1_x", "field": "Major Genre"},
- "width": {"scale": "concat_1_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_1_x'))"},
"y": {"scale": "concat_1_y", "field": "__count"},
"y2": {"scale": "concat_1_y", "value": 0}
}
diff --git a/examples/compiled/interactive_dashboard_europe_pop.vg.json b/examples/compiled/interactive_dashboard_europe_pop.vg.json
index 905b49d135d..7907c00a1f9 100644
--- a/examples/compiled/interactive_dashboard_europe_pop.vg.json
+++ b/examples/compiled/interactive_dashboard_europe_pop.vg.json
@@ -626,7 +626,7 @@
"field": "Population_ages_15_64_of_total_start"
},
"y": {"scale": "concat_0_y", "field": "Country"},
- "height": {"scale": "concat_0_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_0_y'))"}
}
}
},
@@ -950,7 +950,7 @@
"field": "Population_ages_65_and_above_of_total_start"
},
"y": {"scale": "concat_1_y", "field": "Country"},
- "height": {"scale": "concat_1_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_1_y'))"}
}
}
},
diff --git a/examples/compiled/interactive_seattle_weather.vg.json b/examples/compiled/interactive_seattle_weather.vg.json
index 13d435d98b1..850ac9048eb 100644
--- a/examples/compiled/interactive_seattle_weather.vg.json
+++ b/examples/compiled/interactive_seattle_weather.vg.json
@@ -498,7 +498,7 @@
"x": {"scale": "concat_1_x", "field": "__count"},
"x2": {"scale": "concat_1_x", "value": 0},
"y": {"scale": "concat_1_y", "field": "weather"},
- "height": {"scale": "concat_1_y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('concat_1_y'))"}
}
}
}
diff --git a/examples/compiled/joinaggregate_mean_difference.vg.json b/examples/compiled/joinaggregate_mean_difference.vg.json
index ae63ba42e2e..d3592f878ac 100644
--- a/examples/compiled/joinaggregate_mean_difference.vg.json
+++ b/examples/compiled/joinaggregate_mean_difference.vg.json
@@ -82,7 +82,7 @@
"x": {"scale": "x", "field": "IMDB Rating_end"},
"x2": {"scale": "x", "field": "IMDB Rating_start"},
"y": {"scale": "y", "field": "Title"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/joinaggregate_mean_difference_by_year.vg.json b/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
index 476b0af3f33..611937a644a 100644
--- a/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
+++ b/examples/compiled/joinaggregate_mean_difference_by_year.vg.json
@@ -84,7 +84,7 @@
"x": {"scale": "x", "field": "IMDB Rating_end"},
"x2": {"scale": "x", "field": "IMDB Rating_start"},
"y": {"scale": "y", "field": "Title"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/joinaggregate_percent_of_total.vg.json b/examples/compiled/joinaggregate_percent_of_total.vg.json
index ed7365cc584..2258fe7f1df 100644
--- a/examples/compiled/joinaggregate_percent_of_total.vg.json
+++ b/examples/compiled/joinaggregate_percent_of_total.vg.json
@@ -69,7 +69,7 @@
"x": {"scale": "x", "field": "PercentOfTotal_end"},
"x2": {"scale": "x", "field": "PercentOfTotal_start"},
"y": {"scale": "y", "field": "Activity"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/layer_bar_annotations.vg.json b/examples/compiled/layer_bar_annotations.vg.json
index 481e8c5c7b5..0c4bd6ee71d 100644
--- a/examples/compiled/layer_bar_annotations.vg.json
+++ b/examples/compiled/layer_bar_annotations.vg.json
@@ -79,7 +79,7 @@
"signal": "\"Day: \" + (isValid(datum[\"Day\"]) ? datum[\"Day\"] : \"\"+datum[\"Day\"]) + \"; Value: \" + (format(datum[\"Value\"], \"\"))"
},
"x": {"scale": "x", "field": "Day"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Value_end"},
"y2": {"scale": "y", "field": "Value_start"}
}
@@ -98,7 +98,7 @@
"signal": "\"Day: \" + (isValid(datum[\"Day\"]) ? datum[\"Day\"] : \"\"+datum[\"Day\"]) + \"; PM2.5 Value: \" + (format(datum[\"baseline\"], \"\")) + \"; Value: \" + (format(datum[\"Value\"], \"\"))"
},
"x": {"scale": "x", "field": "Day"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "baseline"},
"y2": {"scale": "y", "field": "Value"}
}
diff --git a/examples/compiled/layer_bar_circle_grouped.vg.json b/examples/compiled/layer_bar_circle_grouped.vg.json
index 2b50d57e024..4de4dea6d26 100644
--- a/examples/compiled/layer_bar_circle_grouped.vg.json
+++ b/examples/compiled/layer_bar_circle_grouped.vg.json
@@ -81,7 +81,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/layer_bar_fruit.vg.json b/examples/compiled/layer_bar_fruit.vg.json
index b8361114334..e7d01668fb4 100644
--- a/examples/compiled/layer_bar_fruit.vg.json
+++ b/examples/compiled/layer_bar_fruit.vg.json
@@ -71,7 +71,7 @@
"x": {"scale": "x", "field": "count_end"},
"x2": {"scale": "x", "field": "count_start"},
"y": {"scale": "y", "field": "name"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/layer_bar_grouped_line_ungrouped.vg.json b/examples/compiled/layer_bar_grouped_line_ungrouped.vg.json
index dc3df7df6b7..bd2e4f27df6 100644
--- a/examples/compiled/layer_bar_grouped_line_ungrouped.vg.json
+++ b/examples/compiled/layer_bar_grouped_line_ungrouped.vg.json
@@ -79,7 +79,7 @@
"field": "category",
"offset": {"scale": "xOffset", "field": "group"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
diff --git a/examples/compiled/layer_bar_labels.vg.json b/examples/compiled/layer_bar_labels.vg.json
index 7ede2672cfb..31d397cd710 100644
--- a/examples/compiled/layer_bar_labels.vg.json
+++ b/examples/compiled/layer_bar_labels.vg.json
@@ -62,7 +62,7 @@
"x": {"scale": "x", "field": "b_end"},
"x2": {"scale": "x", "field": "b_start"},
"y": {"scale": "y", "field": "a"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/layer_bar_labels_grey.vg.json b/examples/compiled/layer_bar_labels_grey.vg.json
index beb6fa9b63f..8b777564831 100644
--- a/examples/compiled/layer_bar_labels_grey.vg.json
+++ b/examples/compiled/layer_bar_labels_grey.vg.json
@@ -53,7 +53,7 @@
"x": {"scale": "x", "field": "mean_IMDB Rating"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "Major Genre"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/layer_bar_labels_style.vg.json b/examples/compiled/layer_bar_labels_style.vg.json
index 0efd8ebe05a..dd0169cc9c8 100644
--- a/examples/compiled/layer_bar_labels_style.vg.json
+++ b/examples/compiled/layer_bar_labels_style.vg.json
@@ -61,7 +61,7 @@
"x": {"scale": "x", "field": "b_end"},
"x2": {"scale": "x", "field": "b_start"},
"y": {"scale": "y", "field": "a"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/layer_bar_line.vg.json b/examples/compiled/layer_bar_line.vg.json
index eec6e7a17be..0fa026c72d6 100644
--- a/examples/compiled/layer_bar_line.vg.json
+++ b/examples/compiled/layer_bar_line.vg.json
@@ -59,7 +59,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/layer_bar_line_union.vg.json b/examples/compiled/layer_bar_line_union.vg.json
index ea1feef68a3..3cf4f28bc23 100644
--- a/examples/compiled/layer_bar_line_union.vg.json
+++ b/examples/compiled/layer_bar_line_union.vg.json
@@ -59,7 +59,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; c: \" + (format(datum[\"c\"], \"\"))"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "c_end"},
"y2": {"scale": "y", "field": "c_start"}
}
diff --git a/examples/compiled/layer_bar_month.vg.json b/examples/compiled/layer_bar_month.vg.json
index a0b5889ea68..498fab4f7bf 100644
--- a/examples/compiled/layer_bar_month.vg.json
+++ b/examples/compiled/layer_bar_month.vg.json
@@ -72,7 +72,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_precipitation"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/layer_bar_tick_datum_grouped.vg.json b/examples/compiled/layer_bar_tick_datum_grouped.vg.json
index d39abf994b0..335a19cc9d2 100644
--- a/examples/compiled/layer_bar_tick_datum_grouped.vg.json
+++ b/examples/compiled/layer_bar_tick_datum_grouped.vg.json
@@ -53,7 +53,7 @@
"field": "Cylinders",
"offset": {"scale": "xOffset", "field": "Origin"}
},
- "width": {"scale": "xOffset", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "mean_Acceleration"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/layer_precipitation_mean.vg.json b/examples/compiled/layer_precipitation_mean.vg.json
index e49acfaf0de..d19a7112bd4 100644
--- a/examples/compiled/layer_precipitation_mean.vg.json
+++ b/examples/compiled/layer_precipitation_mean.vg.json
@@ -72,7 +72,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_precipitation"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/layer_text_heatmap.vg.json b/examples/compiled/layer_text_heatmap.vg.json
index 66ae81e15ee..4f005e6d2d8 100644
--- a/examples/compiled/layer_text_heatmap.vg.json
+++ b/examples/compiled/layer_text_heatmap.vg.json
@@ -48,9 +48,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"num_cars\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/layer_text_heatmap_joinaggregate.vg.json b/examples/compiled/layer_text_heatmap_joinaggregate.vg.json
index d449076c748..030416d4231 100644
--- a/examples/compiled/layer_text_heatmap_joinaggregate.vg.json
+++ b/examples/compiled/layer_text_heatmap_joinaggregate.vg.json
@@ -59,9 +59,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"num_cars\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/lookup.vg.json b/examples/compiled/lookup.vg.json
index 1c7ec313be8..461db2d4fdd 100644
--- a/examples/compiled/lookup.vg.json
+++ b/examples/compiled/lookup.vg.json
@@ -57,7 +57,7 @@
"signal": "\"group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"]) + \"; Mean of age: \" + (format(datum[\"mean_age\"], \"\"))"
},
"x": {"scale": "x", "field": "group"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_age"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/rect_heatmap.vg.json b/examples/compiled/rect_heatmap.vg.json
index d10f2c4d079..5afa68acb2c 100644
--- a/examples/compiled/rect_heatmap.vg.json
+++ b/examples/compiled/rect_heatmap.vg.json
@@ -42,9 +42,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Mean of Horsepower: \" + (format(datum[\"mean_Horsepower\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/rect_heatmap_weather.vg.json b/examples/compiled/rect_heatmap_weather.vg.json
index 3005add7380..a185f5a3cd5 100644
--- a/examples/compiled/rect_heatmap_weather.vg.json
+++ b/examples/compiled/rect_heatmap_weather.vg.json
@@ -61,9 +61,9 @@
"signal": "\"Day: \" + (timeFormat(datum[\"date_date\"], '%e')) + \"; Month: \" + (timeFormat(datum[\"month_date\"], timeUnitSpecifier([\"month\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"}))) + \"; Max of temp_max: \" + (format(datum[\"max_temp_max\"], \"\"))"
},
"x": {"scale": "x", "field": "date_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "month_date"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/rect_lasagna.vg.json b/examples/compiled/rect_lasagna.vg.json
index ed0448069f8..b6364132b8d 100644
--- a/examples/compiled/rect_lasagna.vg.json
+++ b/examples/compiled/rect_lasagna.vg.json
@@ -45,9 +45,9 @@
"signal": "\"Time: \" + (timeFormat(datum[\"yearmonthdate_date\"], '%Y')) + \"; symbol: \" + (isValid(datum[\"symbol\"]) ? datum[\"symbol\"] : \"\"+datum[\"symbol\"]) + \"; Price: \" + (format(datum[\"sum_price\"], \"\"))"
},
"x": {"scale": "x", "field": "yearmonthdate_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "symbol"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/selection_composition_and.vg.json b/examples/compiled/selection_composition_and.vg.json
index c67bcf67999..5cf170d7293 100644
--- a/examples/compiled/selection_composition_and.vg.json
+++ b/examples/compiled/selection_composition_and.vg.json
@@ -585,9 +585,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_composition_or.vg.json b/examples/compiled/selection_composition_or.vg.json
index 16299689992..5122dc54e39 100644
--- a/examples/compiled/selection_composition_or.vg.json
+++ b/examples/compiled/selection_composition_or.vg.json
@@ -585,9 +585,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_heatmap.vg.json b/examples/compiled/selection_heatmap.vg.json
index 9d107c543d3..02149f6e3fc 100644
--- a/examples/compiled/selection_heatmap.vg.json
+++ b/examples/compiled/selection_heatmap.vg.json
@@ -121,9 +121,9 @@
"signal": "\"predicted: \" + (isValid(datum[\"predicted\"]) ? datum[\"predicted\"] : \"\"+datum[\"predicted\"]) + \"; actual: \" + (isValid(datum[\"actual\"]) ? datum[\"actual\"] : \"\"+datum[\"actual\"]) + \"; count: \" + (format(datum[\"count\"], \"\"))"
},
"x": {"scale": "x", "field": "predicted"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "actual"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/selection_interval_mark_style.vg.json b/examples/compiled/selection_interval_mark_style.vg.json
index 05bfed9cdf4..a736606940d 100644
--- a/examples/compiled/selection_interval_mark_style.vg.json
+++ b/examples/compiled/selection_interval_mark_style.vg.json
@@ -578,9 +578,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_layer_bar_month.vg.json b/examples/compiled/selection_layer_bar_month.vg.json
index 5e6abd859c8..600cd0b017d 100644
--- a/examples/compiled/selection_layer_bar_month.vg.json
+++ b/examples/compiled/selection_layer_bar_month.vg.json
@@ -293,7 +293,7 @@
"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\"], \"\"))"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "mean_precipitation"},
"y2": {"scale": "y", "value": 0}
}
diff --git a/examples/compiled/selection_project_interval.vg.json b/examples/compiled/selection_project_interval.vg.json
index 2586350b46c..920b039888a 100644
--- a/examples/compiled/selection_project_interval.vg.json
+++ b/examples/compiled/selection_project_interval.vg.json
@@ -308,9 +308,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_project_interval_x.vg.json b/examples/compiled/selection_project_interval_x.vg.json
index 22020f4c9d5..d7f80f4b6fb 100644
--- a/examples/compiled/selection_project_interval_x.vg.json
+++ b/examples/compiled/selection_project_interval_x.vg.json
@@ -251,9 +251,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_project_interval_x_y.vg.json b/examples/compiled/selection_project_interval_x_y.vg.json
index 2586350b46c..920b039888a 100644
--- a/examples/compiled/selection_project_interval_x_y.vg.json
+++ b/examples/compiled/selection_project_interval_x_y.vg.json
@@ -308,9 +308,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_project_interval_y.vg.json b/examples/compiled/selection_project_interval_y.vg.json
index fd238a8b98e..82bf700c3fe 100644
--- a/examples/compiled/selection_project_interval_y.vg.json
+++ b/examples/compiled/selection_project_interval_y.vg.json
@@ -251,9 +251,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_type_interval.vg.json b/examples/compiled/selection_type_interval.vg.json
index 2586350b46c..920b039888a 100644
--- a/examples/compiled/selection_type_interval.vg.json
+++ b/examples/compiled/selection_type_interval.vg.json
@@ -308,9 +308,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_type_interval_invert.vg.json b/examples/compiled/selection_type_interval_invert.vg.json
index 2d268913ce4..40947e9b51c 100644
--- a/examples/compiled/selection_type_interval_invert.vg.json
+++ b/examples/compiled/selection_type_interval_invert.vg.json
@@ -307,9 +307,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/selection_type_point.vg.json b/examples/compiled/selection_type_point.vg.json
index 4ec3e4ea8d9..6dba2e61adf 100644
--- a/examples/compiled/selection_type_point.vg.json
+++ b/examples/compiled/selection_type_point.vg.json
@@ -97,9 +97,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/selection_type_single_dblclick.vg.json b/examples/compiled/selection_type_single_dblclick.vg.json
index 394be3d0a85..ea489ca44ad 100644
--- a/examples/compiled/selection_type_single_dblclick.vg.json
+++ b/examples/compiled/selection_type_single_dblclick.vg.json
@@ -97,9 +97,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/selection_type_single_mouseover.vg.json b/examples/compiled/selection_type_single_mouseover.vg.json
index b3084883fea..91347e543e2 100644
--- a/examples/compiled/selection_type_single_mouseover.vg.json
+++ b/examples/compiled/selection_type_single_mouseover.vg.json
@@ -97,9 +97,9 @@
"signal": "\"Cylinders: \" + (isValid(datum[\"Cylinders\"]) ? datum[\"Cylinders\"] : \"\"+datum[\"Cylinders\"]) + \"; Origin: \" + (isValid(datum[\"Origin\"]) ? datum[\"Origin\"] : \"\"+datum[\"Origin\"]) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))"
},
"x": {"scale": "x", "field": "Cylinders"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "Origin"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/stacked_bar_count.vg.json b/examples/compiled/stacked_bar_count.vg.json
index a6385268422..7687ac5e771 100644
--- a/examples/compiled/stacked_bar_count.vg.json
+++ b/examples/compiled/stacked_bar_count.vg.json
@@ -55,7 +55,7 @@
"signal": "\"date (month): \" + (timeFormat(datum[\"month_date\"], timeUnitSpecifier([\"month\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"}))) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\")) + \"; weather: \" + (isValid(datum[\"weather\"]) ? datum[\"weather\"] : \"\"+datum[\"weather\"])"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count_end"},
"y2": {"scale": "y", "field": "__count_start"}
}
diff --git a/examples/compiled/stacked_bar_count_corner_radius_config.vg.json b/examples/compiled/stacked_bar_count_corner_radius_config.vg.json
index 6ea4d89ea0d..bcc361cd0e7 100644
--- a/examples/compiled/stacked_bar_count_corner_radius_config.vg.json
+++ b/examples/compiled/stacked_bar_count_corner_radius_config.vg.json
@@ -63,7 +63,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min___count_start\"]),scale('y',datum[\"max___count_start\"]),scale('y',datum[\"min___count_end\"]),scale('y',datum[\"max___count_end\"]))"
},
diff --git a/examples/compiled/stacked_bar_count_corner_radius_mark.vg.json b/examples/compiled/stacked_bar_count_corner_radius_mark.vg.json
index 5bc897aaaf9..c5cfffe1141 100644
--- a/examples/compiled/stacked_bar_count_corner_radius_mark.vg.json
+++ b/examples/compiled/stacked_bar_count_corner_radius_mark.vg.json
@@ -63,7 +63,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min___count_start\"]),scale('y',datum[\"max___count_start\"]),scale('y',datum[\"min___count_end\"]),scale('y',datum[\"max___count_end\"]))"
},
diff --git a/examples/compiled/stacked_bar_count_corner_radius_mark_x.vg.json b/examples/compiled/stacked_bar_count_corner_radius_mark_x.vg.json
index 375b9e48104..5ce246633a3 100644
--- a/examples/compiled/stacked_bar_count_corner_radius_mark_x.vg.json
+++ b/examples/compiled/stacked_bar_count_corner_radius_mark_x.vg.json
@@ -63,7 +63,7 @@
"encode": {
"update": {
"y": {"scale": "y", "field": "month_date"},
- "height": {"scale": "y", "band": 1},
+ "height": {"signal": "max(0.25, bandwidth('y'))"},
"cornerRadiusTopRight": {"value": 8},
"cornerRadiusBottomRight": {"value": 8},
"x": {
diff --git a/examples/compiled/stacked_bar_count_corner_radius_stroke.vg.json b/examples/compiled/stacked_bar_count_corner_radius_stroke.vg.json
index 9c330413c0b..5dc57510835 100644
--- a/examples/compiled/stacked_bar_count_corner_radius_stroke.vg.json
+++ b/examples/compiled/stacked_bar_count_corner_radius_stroke.vg.json
@@ -63,7 +63,7 @@
"encode": {
"update": {
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {
"signal": "min(scale('y',datum[\"min___count_start\"]),scale('y',datum[\"max___count_start\"]),scale('y',datum[\"min___count_end\"]),scale('y',datum[\"max___count_end\"]))"
},
diff --git a/examples/compiled/stacked_bar_h.vg.json b/examples/compiled/stacked_bar_h.vg.json
index 9e3f423017d..2d7351dc7a7 100644
--- a/examples/compiled/stacked_bar_h.vg.json
+++ b/examples/compiled/stacked_bar_h.vg.json
@@ -55,7 +55,7 @@
"x": {"scale": "x", "field": "sum_yield_end"},
"x2": {"scale": "x", "field": "sum_yield_start"},
"y": {"scale": "y", "field": "variety"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/stacked_bar_h_normalized_labeled.vg.json b/examples/compiled/stacked_bar_h_normalized_labeled.vg.json
index 2997d11aba0..87e5d5c3560 100644
--- a/examples/compiled/stacked_bar_h_normalized_labeled.vg.json
+++ b/examples/compiled/stacked_bar_h_normalized_labeled.vg.json
@@ -77,7 +77,7 @@
"x": {"scale": "x", "field": "sum_people_end"},
"x2": {"scale": "x", "field": "sum_people_start"},
"y": {"scale": "y", "field": "age"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
},
diff --git a/examples/compiled/stacked_bar_h_order.vg.json b/examples/compiled/stacked_bar_h_order.vg.json
index c480e6afb30..bf3acb95fbd 100644
--- a/examples/compiled/stacked_bar_h_order.vg.json
+++ b/examples/compiled/stacked_bar_h_order.vg.json
@@ -55,7 +55,7 @@
"x": {"scale": "x", "field": "sum_yield_end"},
"x2": {"scale": "x", "field": "sum_yield_start"},
"y": {"scale": "y", "field": "variety"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/stacked_bar_h_order_custom.vg.json b/examples/compiled/stacked_bar_h_order_custom.vg.json
index 19d8890cf9e..b1bd41de1eb 100644
--- a/examples/compiled/stacked_bar_h_order_custom.vg.json
+++ b/examples/compiled/stacked_bar_h_order_custom.vg.json
@@ -60,7 +60,7 @@
"x": {"scale": "x", "field": "sum_yield_end"},
"x2": {"scale": "x", "field": "sum_yield_start"},
"y": {"scale": "y", "field": "variety"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/stacked_bar_normalize.vg.json b/examples/compiled/stacked_bar_normalize.vg.json
index 4c5da742446..08df66d85e0 100644
--- a/examples/compiled/stacked_bar_normalize.vg.json
+++ b/examples/compiled/stacked_bar_normalize.vg.json
@@ -59,7 +59,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people_end\"]-datum[\"sum_people_start\"], \".0%\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/stacked_bar_population.vg.json b/examples/compiled/stacked_bar_population.vg.json
index fb4719486a3..89196843e02 100644
--- a/examples/compiled/stacked_bar_population.vg.json
+++ b/examples/compiled/stacked_bar_population.vg.json
@@ -60,7 +60,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/stacked_bar_population_transform.vg.json b/examples/compiled/stacked_bar_population_transform.vg.json
index f320dd74845..1d5c55b211d 100644
--- a/examples/compiled/stacked_bar_population_transform.vg.json
+++ b/examples/compiled/stacked_bar_population_transform.vg.json
@@ -53,7 +53,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"v1\"], \"\")) + \"; v2: \" + (format(datum[\"v2\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "v1"},
"y2": {"scale": "y", "field": "v2"}
}
diff --git a/examples/compiled/stacked_bar_sum_opacity.vg.json b/examples/compiled/stacked_bar_sum_opacity.vg.json
index 572c5b05c7d..6492caecc1c 100644
--- a/examples/compiled/stacked_bar_sum_opacity.vg.json
+++ b/examples/compiled/stacked_bar_sum_opacity.vg.json
@@ -61,7 +61,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; people: \" + (format(datum[\"people\"], \"\"))"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/stacked_bar_unaggregate.vg.json b/examples/compiled/stacked_bar_unaggregate.vg.json
index da55f175ff7..92509ade9de 100644
--- a/examples/compiled/stacked_bar_unaggregate.vg.json
+++ b/examples/compiled/stacked_bar_unaggregate.vg.json
@@ -54,7 +54,7 @@
"signal": "\"a: \" + (isValid(datum[\"a\"]) ? datum[\"a\"] : \"\"+datum[\"a\"]) + \"; b: \" + (format(datum[\"b\"], \"\")) + \"; c: \" + (isValid(datum[\"c\"]) ? datum[\"c\"] : \"\"+datum[\"c\"])"
},
"x": {"scale": "x", "field": "a"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "b_end"},
"y2": {"scale": "y", "field": "b_start"}
}
diff --git a/examples/compiled/stacked_bar_v.vg.json b/examples/compiled/stacked_bar_v.vg.json
index 27400a5a5c8..a0409fbb639 100644
--- a/examples/compiled/stacked_bar_v.vg.json
+++ b/examples/compiled/stacked_bar_v.vg.json
@@ -53,7 +53,7 @@
"signal": "\"variety: \" + (isValid(datum[\"variety\"]) ? datum[\"variety\"] : \"\"+datum[\"variety\"]) + \"; Sum of yield: \" + (format(datum[\"sum_yield\"], \"\")) + \"; site: \" + (isValid(datum[\"site\"]) ? datum[\"site\"] : \"\"+datum[\"site\"])"
},
"x": {"scale": "x", "field": "variety"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_yield_end"},
"y2": {"scale": "y", "field": "sum_yield_start"}
}
diff --git a/examples/compiled/stacked_bar_weather.vg.json b/examples/compiled/stacked_bar_weather.vg.json
index 3bd6a710e44..5eb9d436b0b 100644
--- a/examples/compiled/stacked_bar_weather.vg.json
+++ b/examples/compiled/stacked_bar_weather.vg.json
@@ -55,7 +55,7 @@
"signal": "\"Month of the year: \" + (timeFormat(datum[\"month_date\"], timeUnitSpecifier([\"month\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"}))) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\")) + \"; Weather type: \" + (isValid(datum[\"weather\"]) ? datum[\"weather\"] : \"\"+datum[\"weather\"])"
},
"x": {"scale": "x", "field": "month_date"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "__count_end"},
"y2": {"scale": "y", "field": "__count_start"}
}
diff --git a/examples/compiled/test_aggregate_nested.vg.json b/examples/compiled/test_aggregate_nested.vg.json
index d83d7c2d26b..65bda28edf0 100644
--- a/examples/compiled/test_aggregate_nested.vg.json
+++ b/examples/compiled/test_aggregate_nested.vg.json
@@ -92,7 +92,7 @@
"x": {"scale": "x", "field": "sum_properties\\.yield_end"},
"x2": {"scale": "x", "field": "sum_properties\\.yield_start"},
"y": {"scale": "y", "field": "properties\\.variety"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/trellis_bar.vg.json b/examples/compiled/trellis_bar.vg.json
index f6091d32602..a8b3fef14a3 100644
--- a/examples/compiled/trellis_bar.vg.json
+++ b/examples/compiled/trellis_bar.vg.json
@@ -143,7 +143,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/trellis_bar_no_header.vg.json b/examples/compiled/trellis_bar_no_header.vg.json
index 31df7c83d22..0e859595afa 100644
--- a/examples/compiled/trellis_bar_no_header.vg.json
+++ b/examples/compiled/trellis_bar_no_header.vg.json
@@ -117,7 +117,7 @@
"signal": "\"age: \" + (isValid(datum[\"age\"]) ? datum[\"age\"] : \"\"+datum[\"age\"]) + \"; population: \" + (format(datum[\"sum_people\"], \"\")) + \"; gender: \" + (isValid(datum[\"gender\"]) ? datum[\"gender\"] : \"\"+datum[\"gender\"])"
},
"x": {"scale": "x", "field": "age"},
- "width": {"scale": "x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('x'))"},
"y": {"scale": "y", "field": "sum_people_end"},
"y2": {"scale": "y", "field": "sum_people_start"}
}
diff --git a/examples/compiled/trellis_stacked_bar.vg.json b/examples/compiled/trellis_stacked_bar.vg.json
index d73024a5ab5..02913643690 100644
--- a/examples/compiled/trellis_stacked_bar.vg.json
+++ b/examples/compiled/trellis_stacked_bar.vg.json
@@ -138,7 +138,7 @@
"x": {"scale": "x", "field": "sum_yield_end"},
"x2": {"scale": "x", "field": "sum_yield_start"},
"y": {"scale": "y", "field": "variety"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/vconcat_weather.vg.json b/examples/compiled/vconcat_weather.vg.json
index 1255516cc8f..b815a041989 100644
--- a/examples/compiled/vconcat_weather.vg.json
+++ b/examples/compiled/vconcat_weather.vg.json
@@ -117,7 +117,7 @@
"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\"], \"\"))"
},
"x": {"scale": "concat_0_x", "field": "month_date"},
- "width": {"scale": "concat_0_x", "band": 1},
+ "width": {"signal": "max(0.25, bandwidth('concat_0_x'))"},
"y": {"scale": "concat_0_y", "field": "mean_precipitation"},
"y2": {"scale": "concat_0_y", "value": 0}
}
diff --git a/examples/compiled/window_top_k.vg.json b/examples/compiled/window_top_k.vg.json
index 37d343a85fc..23aec6d38c0 100644
--- a/examples/compiled/window_top_k.vg.json
+++ b/examples/compiled/window_top_k.vg.json
@@ -90,7 +90,7 @@
"x": {"scale": "x", "field": "score_end"},
"x2": {"scale": "x", "field": "score_start"},
"y": {"scale": "y", "field": "student"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}
diff --git a/examples/compiled/window_top_k_others.vg.json b/examples/compiled/window_top_k_others.vg.json
index 96c858f7c79..106ca554770 100644
--- a/examples/compiled/window_top_k_others.vg.json
+++ b/examples/compiled/window_top_k_others.vg.json
@@ -78,7 +78,7 @@
"x": {"scale": "x", "field": "mean_aggregate_gross"},
"x2": {"scale": "x", "value": 0},
"y": {"scale": "y", "field": "ranked_director"},
- "height": {"scale": "y", "band": 1}
+ "height": {"signal": "max(0.25, bandwidth('y'))"}
}
}
}