重点代码
itemStyle: { show: true, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0, color: '#C70019' }, { offset: 0.5, color: '#EB354C' }, { offset: 1, color: '#C70019' }]), barBorderRadius: [20, 20, 0, 0], borderWidth: 0, borderColor: '#333', }
Done!