Skip to content

You must be logged in to vote

It’s shorthand for specifying all four margins as the same value. For example, margin: 20.

Plot.plot({
  margin: 20,
  marks: [ ... ]
})

is equivalent to

Plot.plot({
  marginTop: 20,
  marginBottom: 20,
  marginLeft: 20,
  marginRight: 20,
  marks: [ ... ]
})

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@dgwyer

Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants