plotly / plotly/plotly.js

Secondary x-axis numberline doesn't show on histogram plots

Open
#6,308 2 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

I'm trying to make a plot that histograms two variables (min, max) for two sources (two different LEDs).
The plot should have two y axes and two x-axes; both sets of minimum values are plotted with a given pair of x-y axes, and both sets of maximum values on the other. This appears to be straightforward to implement; just specify the two additional axes in the layout and set the corresponding traces to use them, but for some reason although the secondary x-axis title is shown at the top (as desired), the corresponding axis numberline isn't.
reproducible example
Apologies for the somewhat contrived example code, it's hacked out of a wider webpage, but i think is easy enough to understand.

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 JSBin reproducible example and confirm that the secondary x-axis title renders while its numberline does not. Trace the relevant plotly.js axis-rendering path and verify the behavior with the histogram configuration; done means the secondary x-axis numberline appears alongside its title.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.