您可以使用formatter
函数自定义标签:
xAxis: {
labels: {
formatter: function() {
if (this.isLast) {
return 'Now'
}
return Highcharts.dateFormat('%H:%M:%S.%L', this.value);
}
}
}
现场演示:http://jsfiddle.net/BlackLabel/5s3gbawr/
API:https://api.highcharts.com/highcharts/xAxis.labels.formatter