score:1

Accepted answer

this is caused by data-grouping feature. you can disable it or define a custom format for each time span.

  series: [{
    data: data,
    datagrouping: {
      enabled: false,
      ...
    }
  }]

live demo: https://jsfiddle.net/blacklabel/yor987mt/

docs: https://www.highcharts.com/docs/stock/data-grouping

api reference: https://api.highcharts.com/highstock/series.line.datagrouping.datetimelabelformats

score:0

it seems there is a workaround using fooltip.formatter which allows to define a tooltip for both the series and the dates using a callback function which returns an array of the form [date, y1, y2, ...].

tooltip: {
    formatter: _ => ['test custom date', 'custom y']
}

in my case, i now reuse the default formatter for the y value but replace the logic to format the dates

tooltip: {
    formatter: function(tooltip) {
         let tt = tooltip.defaultformatter.call(this, tooltip);
         tt[0] = 'test custom date';
         return tt;
    }
}

live example: https://jsfiddle.net/gregordecillia/5hj6r1ft/58/


Related Query

More Query from same tag