如图
这里显示21是日期,怎么显示00:00
开始时间是21日00:00:00结束时间23:59:59
代码
let brokenLineDOM = echarts.init($("#brokenLine")[0], null, {
height: window_h
});
brokenLineOption = {
title: {
text: '单位:kW'
},
tooltip: {
trigger: "axis",
// axisPointer: {
// type: "shadow",
// },
},
legend: {
data: ['基线负荷', '平均负荷', '实时负荷'],
itemHeight: 0,
itemStyle: {
borderWidth: 1,
},
left: "right",
},
grid: {
left: '3%',
right: '4%',
bottom: '1%',
containLabel: true
},
xAxis: {
type: "time",
boundaryGap: false,
},
yAxis: {
type: 'value'
},
series: [
{
name: '基线负荷',
type: 'line',
step: 'middle',
showSymbol: false,
// smooth: false,
data: [],
},
{
name: '平均负荷',
type: 'line',
step: 'middle',
showSymbol: false,
data: []
},
{
name: '实时负荷',
type: 'line',
step: 'middle',
showSymbol: false,
data: []
}
]
};
brokenLineDOM.setOption(brokenLineOption);