Formatting of date/times in Highstock changed? #5302
Closed
Comments
As I remember, Anyway, fixed demo: http://jsfiddle.net/sa9tzn0k/1/ So in your case:
|
Huh, that was easy... thanks. Must have been a coincidence then indeed! For some reason I thought 'this.x' was returning a string as it showed it as a string in the Chrome console. But perhaps Chrome is being too clever and automatically formatting it? |
|
TorsteinHonsi
added a commit
that referenced
this issue
May 10, 2016
@jon-a-nygaard FYI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been using Highstock for some time for a graph with a date/time x-axis. I use a custom tooltip formatter that outputs the day name and time of day for each datapoint, alongside some other data included in the data.
It seems that the update from version 2.1.10 to version 4.2.0 broke the date formatting or at least it is not working for me anymore.
When I force my code to load the old version 2.1.10 it works again. Of course I would like to use the new version but I cannot find this change in the changelogs, and I cannot figure out what I should change to make it work again.
I am using the following code for the tooltip formatter:
Expected behaviour
The code used to output correctly the name of the day in the "%a" formatter and the time of day in the "%H:%M" formatter.
Actual behaviour
The date formatter outputs nothing at all, just a blank string.
Live demo of the issue
Using script version 2.1.10 the date formatter outputs the time:
http://jsfiddle.net/2wu79psd/
Remove the specific version from the script src tag (to get latest version) and it outputs nothing:
http://jsfiddle.net/sa9tzn0k/
Code is exactly the same, only difference is the version of Highstock used.
The text was updated successfully, but these errors were encountered: