echarts-柱状图坐标上显示数据

***

var option = {
title: {
text: '新增客户'
},
tooltip: {
trigger: 'item',
formatter: "{b} : {c}"
},
xAxis: {
type: 'category',
data: data.Months
},
yAxis: {
type: 'value',
},
series: [{
data: data.ThisMonthIncrease,
type: 'bar',
stack:'bar',
label:{
normal:{
show:true,
formatter:'{c}'
}

}
},
{
data: data.LastMonth,
type: 'bar',
stack:'bar',
label:{
normal:{
show:true,
formatter:'{c}'
}
}
}
]
};

***

posted @ 2018-10-29 14:50  我是梅梓  阅读(1751)  评论(0)    收藏  举报