渐变色 调用echarts内部对象 series: [ { name: '农村', type: 'bar', barWidth: '30%', data: [20, 20, 20, 20, 20], itemStyle:{ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: '#41c469' }, { offset: 1, color: '#ffffff' } ]) } } ]