hightcharts中,图表默认时间显示样式为英文,需改为中文。

HighCharts:图表默认的英文日期改为中文显示_时间显示

解决:增加tooltip样式控制
var tooltipConfig = {
  formatter: function () {
        return '<b>' + this.series.name + '</b><br/>' + this.point.y + '<br/>' +
            getLocalTime(this.point.x);
    },
    dateTimeLabelFormats: {
        millisecond: '%H:%M:%S.%L',
        second: '%H:%M:%S',
        minute: '%H:%M',
        hour: '%H:%M',
        day: '%Y-%m-%d',
        week: '%m-%d',
        month: '%Y-%m',
        year: '%Y'
    }
};
function getLocalTime(nS) {
    var date = new Date(nS);
    return date.getFullYear() + "/" + fomat(date.getMonth() + 1) + "/" + fomat(date.getDate()) + " " + fomat(date.getHours()) + ":" + fomat(date.getMinutes()) + ":" + fomat(date.getSeconds());
}
function fomat(data)
{
    return (data > 9 ? data : "0" + data);
}

在chart初始化中,增加

tooltip: tooltipConfig,

HighCharts:图表默认的英文日期改为中文显示_时间显示_02

即可解决

HighCharts:图表默认的英文日期改为中文显示_时间显示_03