diff --git a/examples/specs/tick_histogram.vl.json b/examples/specs/tick_histogram.vl.json new file mode 100644 index 0000000000..6dcde28932 --- /dev/null +++ b/examples/specs/tick_histogram.vl.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://vega.github.io/schema/vega-lite/v5.json", + "data": {"url": "data/movies.json"}, + "mark": "tick", + "encoding": { + "x": { + "bin": true, + "field": "IMDB Rating" + }, + "y": {"aggregate": "count"} + } +} diff --git a/examples/specs/tick_timeunit.vl.json b/examples/specs/tick_timeunit.vl.json new file mode 100644 index 0000000000..6cb3a7d92d --- /dev/null +++ b/examples/specs/tick_timeunit.vl.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://vega.github.io/schema/vega-lite/v5.json", + "description": "Google's stock price over time.", + "data": {"url": "data/stocks.csv"}, + "transform": [{"filter": "datum.symbol==='GOOG'"}], + "mark": "tick", + "encoding": { + "x": {"timeUnit": "year", "field": "date", "type": "temporal"}, + "y": {"aggregate": "sum", "field": "price", "type": "quantitative"} + } +}