Closed danielkrizian closed 10 years ago
Daylight saving shifts timestamp labels by 1 hour in summer months. Eliminate this shift.
It is evident in any demo.
See legend label (fixed of floating):
Whereas for winter months this is alright:
For higher time resolutions, also x-axis labels are affected (shifted by 1 hour) too. See https://github.com/danielkrizian/rChartsDygraphs/issues/7
TODO: Remove 01:00 label in the legend and in the x-axis (for hourly or higher resolutions)
01:00
The quick fix is to add the value formatter to options:
"axes": { "x": { "valueFormatter": function(ms) { var date = new Date(ms); return date.toLocaleDateString(); } } }
Daylight saving shifts timestamp labels by 1 hour in summer months. Eliminate this shift.
It is evident in any demo.
See legend label (fixed of floating):
Whereas for winter months this is alright:
For higher time resolutions, also x-axis labels are affected (shifted by 1 hour) too. See https://github.com/danielkrizian/rChartsDygraphs/issues/7
TODO: Remove
01:00
label in the legend and in the x-axis (for hourly or higher resolutions)