Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Scale dont work as expected, bad scale. #4815

Closed
nawelittle opened this issue Oct 5, 2017 · 2 comments
Closed

Time Scale dont work as expected, bad scale. #4815

nawelittle opened this issue Oct 5, 2017 · 2 comments

Comments

@nawelittle
Copy link

Problem

I'm using a time type chart, the problem is that the dates do not match on the x axis.
When I stop at one point, I relate it to a totally detached one.

Current Behavior

For example, the value I have in
x: "2017-09-14T15: 41: 38.518245",
Relates it to
x: "2017-09-14T15: 41: 38.518245"

1

Jsfiddle.
https://jsfiddle.net/LilNawe/51ymx1px/

Environment

@simonbrunel
Copy link
Member

It works as expected since you set the tooltip mode to label (deprecated), meaning the tooltip is shown for all elements at the same index. In your case, both have different x but same index (0). I guess you are expecting to interact with elements at the same x (fiddle):

options: {
    tooltips: {
      mode: 'x'
    },
    hover: {
      mode: 'x'
    }
}

@etimberg
Copy link
Member

Closing per the answer above. #4814 covers adding time zone support

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

No branches or pull requests

4 participants