series :[
{
type : 'bar',
name:'国内汽车销量',
barWidth: 20,
label:{
normal:{
show:true,
formatter: function(params) {
if (params.value > 0) {
return params.value;
} else {
return ' ';
}
},
}
},
data : this.seriesData
},
]
formatter函数中判断如果是0就返回空