Plots with multiple axes are not aware of other axis tick labels
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
It seems that when you have multiple xaxes the tick labels are not aware of tick labels from the other axis. This causes the ticks to overlap on the xaxis1 right and xaxis2 left sides when zooming in and out. The following codepen is capable of reproducing the issue: https://codepen.io/cameronwaterman/pen/LYYXyJW

This can be mitigated by adjusting the axis domain to allow for more space between the two, but the issue still presents itself even with spacing if the tick labels are long enough. The domain gap would have to be larger then the amount of horizontal real estate I'm willing to sacrifice to completely avoid the issue.
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.
Research direction
Start with the linked CodePen reproduction and inspect the multiple-x-axis tick layout while zooming in and out. Done means tick labels on the xaxis1 right and xaxis2 left sides no longer overlap, including when the labels are long.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100