tooltip: { trigger: 'axis', axisPointer: { type: 'line', lineStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#1950a300' }, { offset: 1, color: '#1950a321' }, ]), width: 44, type: 'solid', }, }, }
效果:
标签:color,柱状图,选中,offset,type,echarts From: https://www.cnblogs.com/rachelch/p/17551277.html