以下为代码配置:
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
lineStyle: {
color: '#085DFF',
width: 50,
shadowColor: '#085DFF',
opacity: 0.4,
},
label: { show: false }
},
},
grid: {
left: 0,
right: 0,
bottom: 0,
top: '16px',
containLabel: true
},
xAxis: {
type: 'category',
data: axisValues,
axisTick: { show: false },
axisLine: { lineStyle: { color: '#8B98A9' } }
},
yAxis: [
{
type: 'value',
splitLine: { show: false },
axisLine: { lineStyle: { color: '#8B98A9' } },
axisLabel: {
formatter(value: number) {
return value === 0 ? '数量' : value;
}
}
},
{
type: 'value',
splitLine: { show: false },
axisLine: { lineStyle: { color: '#8B98A9' } },
axisLabel: {
formatter(value: number) {
return value === 0 ? '天数' : value;
}
}
}
],
如何能让鼠标hover的时候阴影盖住所有柱子
https://echarts.apache.org/ex...