直接在str里面加上你需要的时区就行了
time: {
timezone: 'Asia/Singapore',
useUTC: false,
},
这就是一个完整的str
export const CHART_SRC = {
chart: {
type: 'spline',
zoomType: 'x',
width: 1637,
},
time: {
timezone: 'Asia/Singapore',
useUTC: false,
},
exporting: {
enabled: false,
},
title: null,
credits: {
enabled: false,
},
yAxis: {
title: {
enabled: false,
},
},
xAxis: {
type: 'datetime',
},
// plotOptions: {
// spline: {
// marker: {
// radius: 4,
// }
// }
// },
// legend: {
// layout: 'vertical',
// align: 'right',
// verticalAlign: 'middle'
// },
series: [
{
name: 'Normal DATA',
data: [],
},
{
name: 'Alarm Threshold',
data: [],
color: 'red',
},
],
};