plotly / plotly/plotly.js

[BUG]: tickformat doesn't adjust when labels are positioned below minor ticks (because of ticklabelindex)

Abierto
#7,933 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@my-tien ya está trabajando en esto.

Desde el 5/8/2026.

enhancement feature P3 size: 3
Lenguaje dominante
JavaScript
Estrellas
18.3k
Forks
2k
Merge medio
2 d 12 h
PR fusionados (30 d)
28

Descripción

This figure demonstrates the issue:

On the x-axis we have major ticks at daily intervals and minor ticks at 6 hour intervals. Although the labels are moved below minor ticks by setting ticklabelindex: -1, the default tickformat doesn't include hourly information, making the tick label incompatible with the labeled tick:

Image

https://codepen.io/toffi-fee/pen/LExqZNa

In contrast to this, if major ticks are labeled, the tickformat automatically includes hours if the ticks have an hourly period:

Image

https://codepen.io/toffi-fee/pen/YPNBeya

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.