Allow datetime axis labels to use guessed tooltip date format
With bigger time series data the x axis may have labels like 2012, 2013, 2014,... while the tooltips display January 2012, February 2013, since this is the actual data spacing. I think it is sometimes confusing to have those two different date formats and it would be nice to be able to specify that the datetime axis labels should also the same guessed date format as the tooltip.
I currently work around this with:
var xAxis = chart.xAxis[0]
var labelConfig = chart.series[0].points[0]
var guessedTooltipDateFormat = chart.tooltip.getXDateFormat(labelConfig, labelConfig.series.tooltipOptions, xAxis)
xAxis.update({labels: {format: '{value:' + guessedTooltipDateFormat + '}'}})
Currently the axis and the points live separate lives in a datetime axis, because we don’t necessarily want a one-to-one match. See for example http://jsfiddle.net/13tbwp3j/, where one axis tick per point would result in a cluttered axis.