Skip to content

Time scale combo chart X axis labels off by one #10889

@pkariz

Description

@pkariz

Expected behavior

in the example shown in the documentation the first label on the X-axis should be Nov 18 and the last one should be Nov 24. While that holds for both bars and line if you mouse over their data, the X axis shows the next day.

Current behavior

It shows the next day, so where bars and line show Nov 18, the X axis shows Nov 19. The last label on the X-axis is not shown when it should be (and have the same value as bars/line, so Nov 24).

Reproducible sample

https://www.chartjs.org/docs/latest/samples/scales/time-combo.html

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.0.1

Browser name and version

No response

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions