diff --git a/examples/specs/layer_bar_labels.vl.json b/examples/specs/layer_bar_labels.vl.json index 0eb5167f304..ec3fbf2df52 100644 --- a/examples/specs/layer_bar_labels.vl.json +++ b/examples/specs/layer_bar_labels.vl.json @@ -1,6 +1,6 @@ { "$schema": "https://vega.github.io/schema/vega-lite/v4.json", - "description": "Bar chart with text labels. Apply scale padding to make the frame cover the labels.", + "description": "Bar chart with text labels. Set domain to make the frame cover the labels.", "data": { "values": [ {"a": "A", "b": 28}, @@ -10,7 +10,7 @@ }, "encoding": { "y": {"field": "a", "type": "nominal"}, - "x": {"field": "b", "type": "quantitative", "scale": {"padding": 10}} + "x": {"field": "b", "type": "quantitative", "scale": {"domain": [0, 60]}} }, "layer": [{ "mark": "bar" diff --git a/examples/specs/trellis_area_seattle.vl.json b/examples/specs/trellis_area_seattle.vl.json index 146cac4aef0..d685070b85a 100644 --- a/examples/specs/trellis_area_seattle.vl.json +++ b/examples/specs/trellis_area_seattle.vl.json @@ -32,11 +32,13 @@ "field": "date", "type": "temporal", "title": "Month", + "timeUnit": "monthdate", "axis": {"format": "%b"} }, "y": { "field": "temperature", "type": "quantitative", + "aggregate": "mean", "scale": {"zero": false}, "axis": {"title": null, "labels": false, "ticks": false} }