Created
February 12, 2015 14:44
-
-
Save kuflash/f793e79ded95576e798b to your computer and use it in GitHub Desktop.
Highcharts snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Добавление форматирования дат по четвертям | |
Highcharts.dateFormats = { | |
Q: function (timestamp) { | |
var date = new Date(timestamp), | |
quarter = date.getUTCMonth(); | |
return Math.floor(quarter/3) + 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment