用属性labelContent可以判断
function(){
let point = this;
let points = this.points;
points = points.filter(val => {
if(val.hasOwnProperty('labelContent')){
return val.labelContent.length == 1;
}else{
return 1;
}
})
if(point == points[points.length - 1]){
let res = points.reduce((pre, cur) => {
return pre + cur.value;
},0)
return res;
}else{
return '';
}
}