From 0597d61d8cbac217be40002f9c5b1e9e68199230 Mon Sep 17 00:00:00 2001 From: Kanit Wongsuphasawat Date: Tue, 20 Jun 2023 12:28:11 -0700 Subject: [PATCH] doc(example): add example --- .../specs/bar_yearmonthdate_minBandSize.vl.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/specs/bar_yearmonthdate_minBandSize.vl.json diff --git a/examples/specs/bar_yearmonthdate_minBandSize.vl.json b/examples/specs/bar_yearmonthdate_minBandSize.vl.json new file mode 100644 index 0000000000..abc64e8643 --- /dev/null +++ b/examples/specs/bar_yearmonthdate_minBandSize.vl.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://vega.github.io/schema/vega-lite/v5.json", + "data": {"url": "data/seattle-weather.csv"}, + "width": 997, + "mark": {"type": "bar"}, + "encoding": { + "x": { + "timeUnit": "yearmonthdate", + "field": "date", + "type": "temporal" + }, + "y": {"aggregate": "mean", "field": "temp_max"} + }, + "config": { + "bar": {"minBandSize": 2} + } +}