请问怎么在x轴的时间上方在加一个日期标签?并且分割线按天加粗?x轴现在表示的是每天的几个时间点。
配置项如下
option = {
title: {
text: '体征图'
},
tooltip: {
trigger: 'axis'
},
legend: {
data: ['体温', '脉搏', '血压']
},
grid: { //top: '0%',
left: '0%',
right: '0%',
bottom: '0%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
position: 'top',
splitLine: {
show: true,
splitnumber: 10
},
axisLabel: {
interval: 0
},
type: 'category',
boundaryGap: false,
data: ['08', '10', '12', '14', '16', '18', '20', '22', '24', '08', '10', '12', '14', '16', '18', '20', '22', '24', '08', '10', '12', '14', '16', '18', '20', '22', '24']
},
yAxis: {
type: 'value'
},
series: [{
name: '体温',
type: 'line',
//stack: '总量',
data: [36, 36.5, 36, 36.8, 36, 36.6, 36.2, 36, 36.7, 36.1, 36.2, 36, 36.5, 36.8, 36, 36.5, 36, 36.8, 36, 36.6, 36.2, 36, 36.7, 36.1, 36.2, 36, 36.5]
},
{
name: '脉搏',
type: 'line',
//stack: '总量',
data: [60, 61, 67, 70, 58, 62, 66, 71, 80, 75, 66, 66, 71, 69, 60, 61, 67, 70, 58, 62, 66, 71, 80, 75, 66, 66, 71]
},
{
name: '血压',
type: 'line',
//stack: '总量',
data: [63, 64, 70, 73, 61, 65, 69, 74, 83, 78, 69, 69, 74, 72, 63, 64, 70, 73, 61, 65, 69, 74, 83, 78, 69, 69, 74]
}
]
};