Formatting of date/times in Highstock changed? #5302
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:
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.
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:
Remove the specific version from the script src tag (to get latest version) and it outputs nothing:
Code is exactly the same, only difference is the version of Highstock used.
The text was updated successfully, but these errors were encountered:
As I remember,
Anyway, fixed demo: http://jsfiddle.net/sa9tzn0k/1/
So in your case: