Skip to content

Commit

Permalink
docs: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 22, 2020
1 parent a193010 commit c918617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/specs/layer_bar_labels.vl.json
Original file line number Diff line number Diff line change
@@ -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},
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions examples/specs/trellis_area_seattle.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand Down

0 comments on commit c918617

Please sign in to comment.