深色背景加浅色阴影就能衬托出发光效果了 option = { backgroundColor: '#212529', textStyle: {color: '#fff'}, xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], splitLine: { show: true, lineStyle: { type: 'dashed', }, }, }, yAxis: { type: 'value', splitLine: { show: false, }, }, series: [{ data: [820, 932, 901, 934, 1290, 1330, 1320], type: 'line', smooth: true, showSymbol: false, lineStyle: { shadowColor: '#fff', shadowBlur: 10, color: { type: 'linear', colorStops: [ {offset: 0, color: '#fff'}, {offset: 1, color: 'yellow'}, ], }, }, }], };
深色背景加浅色阴影就能衬托出发光效果了