series : [
{
type:'bar',
barWidth:50,
data:[10, 52, 200, 334, 390, 330, 220],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'black',
fontSize: 16
}
}
}
}
}
],
echarts 柱状图 柱顶部显示数字(关键代码)
于 2024-05-09 10:40:15 首次发布