From 106fa6355157030370c0d1c011c40f7854d6f59c Mon Sep 17 00:00:00 2001 From: Lukas Hermann Date: Tue, 12 Sep 2023 12:54:46 -0700 Subject: [PATCH] add example --- ...mple_binned_timeunit_special_chars.vl.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 examples/specs/bar_simple_binned_timeunit_special_chars.vl.json diff --git a/examples/specs/bar_simple_binned_timeunit_special_chars.vl.json b/examples/specs/bar_simple_binned_timeunit_special_chars.vl.json new file mode 100644 index 00000000000..92c1526a97e --- /dev/null +++ b/examples/specs/bar_simple_binned_timeunit_special_chars.vl.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://vega.github.io/schema/vega-lite/v5.json", + "title": "A Simple Bar Chart with Lines at Extents", + "data": { + "values": [ + {"a.b": "2022-01-01", "b": 28}, + {"a.b": "2022-01-04", "b.b": 55}, + {"a.b": "2022-01-07", "b": 43}, + {"a.b": "2022-01-02", "b": 91}, + {"a.b": "2022-01-05", "b.b": 81}, + {"a.b": "2022-01-08", "b": 53}, + {"a.b": "2022-01-03", "b": 19}, + {"a.b": "2022-01-06", "b.b": 87}, + {"a.b": "2022-01-09", "b": 52} + ] + }, + "mark": "bar", + "encoding": { + "y": { + "field": "a\\.b", + "type": "temporal", + "timeUnit": "binnedutcyearmonthdate", + "title": "a.b" + }, + "x": {"field": "b", "type": "quantitative"} + } +}