Skip to content

Display error Date when set labels for xaxis #4763

@cuobiezi

Description

@cuobiezi

Description

Steps to Reproduce

  1. Config chart type as 'line'. and xaxis type is 'datetime'
  2. Config max as 1714881301463, min as 1714838101463, tickAmount as 10.
  3. Display xaixs time start close to next day (eg: Sat May 04 2024 23:55:01).
  4. Config labels as
labels: {
      datetimeUTC: false,
      formatter: undefined,
      datetimeFormatter: {
        year: 'yyyy',
        month: 'MMM yyyy',
        day: 'dd MMM',
        hour: 'HH:mm'
      }
    }

Reproduce Env

  • OS version: Edition Windows 10 Enterprise LTSC
  • Chrome version: 129.0.6668.70 (Official Build) (64-bit)
  • Chrome version: 87.0.4280.141 (Official Build) (64-bit)

I can reproduce both of above chrome version .

Expected Behavior

Display correct Date 4 May at the left of xaxis label .

Actual Behavior

Display incorrect Date 24 May the the left of xaxis label.

Screenshots

image
image

Reproduction Link

https://codepen.io/cuobiezi/pen/MWNpqJr

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