自定义标签为系列和-https://help.fanruan.com/finereport/doc-view-4372.html
=========================、
想全部显示,改下语句
function sumLabel(){
const point = this;
const points = point.points;
const validPoints = points.filter( (point) => point.isVisible() );
if(point == validPoints[validPoints.length - 1]){
let value = 0;
for(let i = 0; i < validPoints.length; i++){
value += validPoints[i].value;
}
return " 合计"+value+"\n "+this.value+"\n\n ";
} else {
return this.value;
}
}
效果