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 11, 2023
1 parent 9351320 commit f42c534
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 32 deletions.
Binary file added 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.
1 change: 1 addition & 0 deletions 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.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "xOffset without x will be replaced as x",
"description": "xOffset without x",
"background": "white",
"padding": 5,
"width": 20,
"height": 200,
"style": "cell",
"data": [
Expand All @@ -26,9 +27,9 @@
"transform": [
{
"type": "stack",
"groupby": ["group"],
"groupby": [],
"field": "value",
"sort": {"field": [], "order": []},
"sort": {"field": ["group"], "order": ["descending"]},
"as": ["value_start", "value_end"],
"offset": "zero"
},
Expand All @@ -39,13 +40,6 @@
]
}
],
"signals": [
{"name": "x_step", "value": 20},
{
"name": "width",
"update": "bandspace(domain('x').length, 0.1, 0.05) * x_step"
}
],
"marks": [
{
"name": "marks",
Expand All @@ -59,23 +53,15 @@
"description": {
"signal": "\"value: \" + (format(datum[\"value\"], \"\")) + \"; group: \" + (isValid(datum[\"group\"]) ? datum[\"group\"] : \"\"+datum[\"group\"])"
},
"x": {"scale": "x", "field": "group"},
"width": {"signal": "max(0.25, bandwidth('x'))"},
"xc": {"signal": "width", "mult": 0.5, "offset": {"field": "group"}},
"width": {"signal": "0.9 * width"},
"y": {"scale": "y", "field": "value_end"},
"y2": {"scale": "y", "field": "value_start"}
}
}
}
],
"scales": [
{
"name": "x",
"type": "band",
"domain": {"data": "data_0", "field": "group", "sort": true},
"range": {"step": {"signal": "x_step"}},
"paddingInner": 0.1,
"paddingOuter": 0.05
},
{
"name": "y",
"type": "linear",
Expand All @@ -95,7 +81,6 @@
{
"scale": "y",
"orient": "left",
"gridScale": "x",
"grid": true,
"tickCount": {"signal": "ceil(height/40)"},
"domain": false,
Expand All @@ -106,16 +91,6 @@
"ticks": false,
"zindex": 0
},
{
"scale": "x",
"orient": "bottom",
"grid": false,
"title": "group",
"labelAlign": "right",
"labelAngle": 270,
"labelBaseline": "middle",
"zindex": 0
},
{
"scale": "y",
"orient": "left",
Expand Down
Binary file removed examples/compiled/bar_x_offset_without_x_broken.png
Binary file not shown.
1 change: 0 additions & 1 deletion examples/compiled/bar_x_offset_without_x_broken.svg

This file was deleted.

0 comments on commit f42c534

Please sign in to comment.