Skip to content

Commit

Permalink
doc(examples): add problematic examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Aug 27, 2024
1 parent 80ddac4 commit 34d0a1e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/specs/tick_histogram.vl.json
Original file line number Diff line number Diff line change
@@ -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"}
}
}
11 changes: 11 additions & 0 deletions examples/specs/tick_timeunit.vl.json
Original file line number Diff line number Diff line change
@@ -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"}
}
}

0 comments on commit 34d0a1e

Please sign in to comment.