Skip to content
Discussion options

You must be logged in to vote

If you want the y domain to never be collapsed, you could introduce a mark that adds a non-zero value into the domain; and you can use filter: false to make this mark render nothing.

Plot.plot({
  marks: [
    Plot.tickY([1], { filter: false }),
    Plot.barY([0])
  ]
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mwaibel-go
Comment options

Answer selected by mwaibel-go
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