Skip to content

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

Open
@stephprobst

Description

@stephprobst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokencscustomer success

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions