性能分析图中如果设置双x轴,第二个label无论如何也显示不出来,只能看到轴线,请问应该如何更改以显示出图标上方x轴的label
xAxis: [{
name:'1',
min: startTime,
scale: true,
axisLine: {
show: true,
lineStyle: {
color: colors[2]
}
},
axisLabel: {
backgroundColor:'red',
formatter: '{value} ml'
}
},{
name:'2',
axisLine: {
show: true,
lineStyle: {
color: colors[2]
}
},
min: startTime,
scale: true,
axisLabel: {
backgroundColor:'red',
inside:true,
show:true,
hideOverlap:true,
// formatter: '111ml'
}
},],
series要设置两遍,第二个要加xAxisIndex属性.不知道有没有更好的方法来避免重复渲染