Skip to content

x-axis time round-off when type= time #5649

@kashwath

Description

@kashwath

I am trying to build a chart with time x-axis. The issue is when type= time is specified the time will not exactly start or end at the right time.
X-axis starts to round-off the time when that happens.
Everything works fine if type = time is removed.

Expected Behavior

image

Current Behavior

image

Environment

  • Chart.js version: 2.7.2
  • Browser name and version: Chrome and Firefox

Fiddle - https://jsfiddle.net/b2a2ddsd/516/ ( Expected) - Showing without type =time
Fiddle - https://jsfiddle.net/b2a2ddsd/519/ ( Current ) - Showing with type = time

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions