Skip to content

Commit

Permalink
fix: use udate block for size related properties in example
Browse files Browse the repository at this point in the history
fixes #6
  • Loading branch information
domoritz committed Apr 29, 2021
1 parent 3367cd2 commit 580ed84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/storybook/stories/spec1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ export default {
type: "rect",
from: { data: "table" },
encode: {
enter: {
update: {
x: { scale: "xscale", field: "category", offset: 1 },
width: { scale: "xscale", band: 1, offset: -1 },
y: { scale: "yscale", field: "amount" },
y2: { scale: "yscale", value: 0 },
},
update: {
fill: { value: "steelblue" },
},
hover: {
Expand Down
4 changes: 1 addition & 3 deletions packages/storybook/stories/spec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ export default {
type: "rect",
from: { data: "table" },
encode: {
enter: {
update: {
x: { scale: "xscale", field: "category", offset: 10 },
width: { scale: "xscale", band: 0.5, offset: -1 },
y: { scale: "yscale", field: "amount" },
y2: { scale: "yscale", value: 0 },
},
update: {
fill: { value: "green" },
},
hover: {
Expand Down

0 comments on commit 580ed84

Please sign in to comment.