Skip to content

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

Closed

Description

@my-tien

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

Activity

  1. my-tien commented on Aug 5, 2026

    @my-tien
    ContributorAuthor

    I accidentally put the "feature" label, it should be "bug".

  2. added
    bugsomething broken
    and removed on Aug 5, 2026
  3. added
    P3backlog
    and removed
    bugsomething broken
    on Aug 5, 2026
  4. camdecoster commented on Aug 5, 2026

    @camdecoster
    Contributor

    Thanks for handling this @my-tien!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions