自定义提示内容,代码如下
function sumLabel(){
const point = this;
const points = point.points;
const validPoints = points.filter( (point) => point.isVisible() );
if(point == validPoints[0])
{
let value = 0;
for(let i = 0; i < validPoints.length; i++)
{
value += validPoints[i].value;
}
return "总销量"+value;
} else {
return "";
}
}
参考文档,自定义标签为系列和-https://help.fanruan.com/finereport/doc-view-4372.html