-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
2.6.0: Fixed timezone for line chart via parser #4511
Comments
@JM2014 are you looking to display labels as a single time zone? The reason I ask is that using the You could try using One possible solution to this would be to pass the raw value to the callback. Thoughts @simonbrunel @benmccann ? |
I haven't done anything with timezones before unfortunately. I saw a stackoverflow answer that had suggested to do it the way @JM2014 was attempting: #4303 (comment) |
Hi, The only way which I found meanwhile, was to take a global javascript method from the moment.lib:
But it seems for me, that this should be not the preferred way... Anyway: The chart.js is great. I do not want to miss it! If possible, I would like to check you, if it is a bug.... Greetings
|
Closing as a duplicate with #4814 which is tracking a PR for time zone support and related discussion |
I would like to hava a fixed timezone inside my chart, which ignores any local browser settings.
I don't get the parser property working with a line chart.
Please see the added code:
When trying this, I get an:
parser: function (utcMoment) {
return moment(utcMoment).utcOffset('+0100');
}
I also add the moment-library myself-> Then the error disappear, but the chart does not change.
I tried yesterday the whole day to get it running, with no success.
Is this a bug or a mistake from myside?
Is there somewhere a running example on 2.6.x?
Chart.js: Version 2.6.0
Browser: Firefox 53.0.3 (64bit) or Chrome (58.0.3029.110)
Greetings
Juergen
The text was updated successfully, but these errors were encountered: