echarts横向柱形图怎么把文字显示到上面去?-灵析社区

努力的大名

![1695091440664.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/13f1d3ac09b52baea0379b98944e929f.png)这是要的效果, 但我怎么调都只能这样 ![e7c8556dec80209977e1bd75c89e9e3.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/d85d885aa75ac4401851099cdb19ffd0.png) 应该去调series还是y轴

阅读量:354

点赞量:8

问AI
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241226/50ee29f3fed011ccc1dad496d0353d52.png) option = { xAxis: { max: 'dataMax' }, yAxis: { type: 'category', axisLine:{ show:false }, axisTick:{ show:false }, axisLabel:{ show:false, }, data: ['广州市番禺区1', '广州市番禺区2', '广州市番禺区3'], }, series: [ { type: 'bar', barGap: 0, data: [ { value: 120, itemStyle: { color: '#fff' } }, { value: 200, itemStyle: { color: '#fff' } }, { value: 150, itemStyle: { color: '#fff' } }, ], barWidth:40, label: { show: true, fontSize:18, position: [10, 10], formatter: '{b}', }, }, { type: 'bar', data: [ { value: 120, itemStyle: { color: '#ff0' } }, { value: 200, itemStyle: { color: '#ff0' } }, { value: 150, itemStyle: { color: '#ff0' } }, ], barWidth:20, label: { show: true, position: 'right', }, } ], };