Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Y-axis changes to hoverformat value when both tickformat and hoverformat are set

Aperta
#7,242 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript

Direzione di ricerca

Inizia riproducendo il problema con la configurazione yaxis2 fornita, mantenendo impostati sia tickformat: '.0f' sia hoverformat: '.2f'. Traccia il modo in cui l'asse esegue il rendering delle etichette dei tick e delle etichette hover, quindi verifica che i tick utilizzino tickformat mentre i valori hover mantengano hoverformat.

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

Descrizione

bug P3

When using Plotly.js, if both tickformat and hoverformat are specified for the y-axis, the y-axis values unexpectedly change to the hoverformat values instead of displaying the tickformat values.

example code:

    yaxis2: {
        title: { text: 'Strip Widht [mm]' }, // Y-axis title
        titlefont: { color: '#004768', size: 8, standoff: 0.1 },
        tickfont: { color: '#004768', size: 8 },
        domain: [0.15, 0.80],
        linecolor: '#004768',
        // range based on strip width setpoint + tollerance + 10 mm extra
        range: [(tagValues[4] - tagValues[3] - 5), (tagValues[4] + tagValues[3] + 5)],
        tickvals: [(tagValues[4] - tagValues[3] - 3),(tagValues[4] - tagValues[3]), tagValues[4], (tagValues[4] + tagValues[3]), (tagValues[4] + tagValues[3] + 3)],
        hoverformat: '.2f',
        tickformat: '.0f',
        zeroline: false
    },
Lingua principale
JavaScript
Stelle
18.3k
Fork
2k
Merge medio
2g 10h
PR unite (30g)
30

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.

Altre issue di plotly/plotly.js

Tutte le issue di plotly/plotly.js

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.