自定义修改tooltip
tooltip: {
show: true,
trigger: 'axis',
// extraCssText: 'box-shadow: 0 0 3px rgba(0, 120, 234, 1);', // 添加边框阴影
axisPointer: {
type: 'line',
label: {
show: true,
backgroundColor: '#85C1FF', // 标签背景颜色
shadowStyle: {
color: '#FFF', // 标签文字颜色
},
shadowColor: 'rgba(0, 120, 234, 0.5)', // 标签阴影