Skip to content

Missing ticks on X axis and wrong labels on X axis #4940

@MattChique

Description

@MattChique

Description

We just wanted to update from 3.51 to current version. We noticed that x axis scaling and ticks are not properly calculated.
It seems that in 3.52 it stopped working.

Steps to Reproduce

It seems to be also impacted by xaxis:min and xaxis:max or better, if on x are mainly numbers with the same number before decimal seperator.

Check https://codepen.io/MattChique/pen/emYYzxg

X axis tick amount is 5. Zooming in or out sometimes shows some ticks.

Expected Behavior

  • The last label of the x axis should show the last value.
    • Last x tick label: 278.00
  • If option say, there should be 5 ticks, then 5 ticks should be displayed.

Actual Behavior

  • The last label of the x axis does not match with the charts last value. The last x axis tick is not the last x value of the chart.
    • Last x tick label: 275.50
  • Ticks are missing, but seem to randomly come pack on zoom.

Screenshots

unfortunately i was not able to upload any images without error

Reproduction Link

https://codepen.io/MattChique/pen/emYYzxg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions