在setOption()方法中的series配置中加上itemStyle配置
如下:
series: [{ name: '人数', type: 'bar', data: [], //x轴对应列的值 itemStyle: { //上方显示数值 normal: { label: { show: true, //开启显示 position: 'top', //在上方显示 textStyle: { //数值样式 color: 'black', fontSize: 16 } } } } }]
在setOption()方法中的series配置中加上itemStyle配置
如下:
series: [{ name: '人数', type: 'bar', data: [], //x轴对应列的值 itemStyle: { //上方显示数值 normal: { label: { show: true, //开启显示 position: 'top', //在上方显示 textStyle: { //数值样式 color: 'black', fontSize: 16 } } } } }]
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。