score:1

Accepted answer

use the chart time to format the tooltip:

// store a reference to the chart
const stockchart = highcharts.stockchart('container', {

  // ...

  tooltip: {
    formatter() {
      // use the time object of the chart to format the date
      return `${stockchart.time.dateformat('%h:%m:%s', +new date(this.x))}:  <b>${new intl.numberformat().format(this.y)}</b>` 
     }               
   }

  // ...

})

demo in jsfiddle


Related Query

More Query from same tag