Skip to content

Invalid Date format in Hover data when full hour (0 mins) #911

Description

@fhurta

If the time is full hour (0 minutes), e.g. 12:00, the minutes part is stripped from points[index].x in plotly_hover event.

For x value of '2001-06-11 12:00', the points[0].x value is '2001-06-11 12' - the missing minutes part makes it invalid Date when used in new Date(points[0].x).

See this codepen

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions