如果图表有多个系列,直接修改会出错,需要遍历系列来修改
图表自定义多系列提示-https://help.fanruan.com/finereport/doc-view-3245.html
function(){
var points = this.points;
var value = "<b><font size=2.5 color='white'>" + this.category;
for(var i = 0;i < points.length;i++) {
if(points[i].series.visible){
value += '<br/>'+"<font color='"+points[i].color+"'>●</font>"+points[i].seriesName+':'+points[i].value+"万元";
}
}
return value+"</font></b>";
}