score:1

Accepted answer

Try this change in the condition to match.

If it is NOT a time, make it bold black.

Highcharts.each($('.highcharts-xaxis-labels')[0].children, function(p, i) {
  if ( !p.textContent.match(/\d\d[ap]m/i)) {
    $(p).css({
      fill: '#951515',
      fontWeight: 'bold'
    })
  }
})

\d\d[ap]m will match 04am, 16pm, etc.


Related Query

More Query from same tag