observablehq / observablehq/plot
Plot with inset, axis marks and two bands has wrong auto height
Open
@Fil is already working on this.
Since Jun 2, 2025.
bug
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
If a plot specifies an inset as well as axis marks, then the resulting height causes y labels to overlap if the data only produces two bands:
Plot.plot({
inset: 20,
marks: [
Plot.axisX({anchor: "top"}),
Plot.axisX({anchor: "bottom"}),
Plot.dot("AB", {y: d => d, x: 0})
]
})
Screenshot:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.