plotly / plotly/plotly.js

Plots with multiple axes are not aware of other axis tick labels

Open
#4,785 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
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

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.