option = { backgroundColor:'#000', xAxis: { // type: 'value', axisTick: { show: false, }, axisLabel: { show: false, fontSize: 8 }, splitLine: { show: false } }, yAxis: { type: 'category', inverse: true, namGap: 50, axisTick: { show: false, }, nameTextStyle: { color: '#76AAF2' }, axisLine: { lineStyle: { color: '#76AAF2', width: 1, //这里是为了突出显示加上的 } }, data: ['001地块', '001地块', '001地块', '001地块', '001地块'] }, tooltip: { trigger: 'axis' }, grid: { left: '5%', top: '5%', right: '10%', bottom: '0%', containLabel: true }, series: [{ data: [6543, 4533, 2677, 5543, 2356], // name:'存栏', type: 'bar', barWidth: '10', label: { show: true, position: 'right', color: '#76AAF2', formatter: '{c}亩', }, itemStyle: { normal: { show: true, color: function () { return { type: 'linear', colorStops: [{ offset: 0, color: `#101D46` }, { offset: 1, color: '#62B0E9' }], //globalCoord: false } }, } }, }] }