plotly / plotly/plotly.js

[BUG]: period labels can be positioned incorrectly when using ticklabelindex with only one minor tick

Open
#7,876 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2 size: 3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

In this figure, the period label 2020 should be positioned below the scatter points of the year 2020 but it is centered between the major ticks:

Image

The correct image would contain a minor tick in the center and the 2020 label between the minor tick and the major tick.

Codepen: https://codepen.io/toffi-fee/pen/vEgeELa

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 CodePen reproduction linked in the issue and inspect the period-label behavior when ticklabelindex is used with only one minor tick. Compare the rendered position with the expected placement between the minor and major ticks; done means the 2020 label appears below the 2020 scatter points in that configuration.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.