plotly / plotly/plotly.js

Minor ticks don't work with tickformat %Y and ticklabelmode period

Aperta
#6,686 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug cs P2
Lingua principale
JavaScript
Stelle
18.3k
Fork
2k
Merge medio
2g 12h
PR unite (30g)
28

Descrizione

Minor ticks don't work as expected when the following three axis properties are combined:

  xaxis: {
    tickformat: '%Y',
    ticklabelmode: 'period',
    minor: {
      ticks: 'inside'
    }
  }

The minor ticks don't show up. Changing the tickformat to anything below the year frequency (e.g. %b %Y) lets the minor ticks appear. Removing the ticklabelmode also makes the minor ticks appear.

Here is a codepen that demonstrates the issue:
https://codepen.io/Djeramon/pen/vYQzPOa
Expected behaviour: Minor ticks should appear.

It is unclear, why the minor ticks shouldn't work with a yearly frequency on the major ticks.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con la riproduzione CodePen collegata e verifica l’interazione tra yearly tickformat, ticklabelmode 'period' e minor ticks. Segui i punti di ingresso della generazione dei tick e della modalità delle etichette dell’asse per identificare perché i minor ticks vengono omessi; il lavoro è completato quando i minor ticks compaiono con tutte e tre le proprietà abilitate e i casi esistenti continuano a funzionare.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
data-visualization
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.