echarts 堆叠柱状图 在顶部显示数据总数
1.效果图
2.实现步骤:
const myChart = echarts.init(this.leakTypeDivide)
const option = {
title: {
text: '漏洞类型划分',
x: 'center',
y: 'bottom',
textStyle: {
// 副标题样式
color: '#838080',
fontWeight: 900,
fontSize:15,
lineHeight: 20,
fontFamily: 'Microsoft Yahei'
}
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {
},
grid: {
left: '3%',
right: '4%',
bottom: