Skip to content

Commit

Permalink
chore: update examples [CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Oct 12, 2023
1 parent 14ca358 commit b6bde42
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Binary file modified examples/compiled/bar_x_offset_without_x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/compiled/bar_x_offset_without_x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 14 additions & 4 deletions examples/compiled/bar_x_offset_without_x.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"transform": [
{
"type": "stack",
"groupby": [],
"groupby": ["group"],
"field": "value",
"sort": {"field": ["group"], "order": ["descending"]},
"sort": {"field": [], "order": []},
"as": ["value_start", "value_end"],
"offset": "zero"
},
Expand All @@ -53,8 +53,12 @@
"description": {
"signal": "\"value: \" + (format(datum[\"value\"], \"\")) + \"; group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"])"
},
"xc": {"signal": "width", "mult": 0.5, "offset": {"field": "group"}},
"width": {"signal": "0.9 * width"},
"x": {
"signal": "width",
"mult": 0.5,
"offset": {"scale": "xOffset", "field": "group"}
},
"width": {"signal": "max(0.25, bandwidth('xOffset'))"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
Expand All @@ -70,6 +74,12 @@
"nice": true,
"zero": true
},
{
"name": "xOffset",
"type": "band",
"domain": {"data": "data_0", "field": "group", "sort": true},
"range": [{"signal": "-0.5*width"}, {"signal": "0.5*width"}]
},
{
"name": "color",
"type": "ordinal",
Expand Down

0 comments on commit b6bde42

Please sign in to comment.