例如:现在有一个月份是9 9月之前的系列名是月度实际,9月之后的叫别的名称
function(){
var a = this.category;
var b = this.seriesName;
if(a > 5){
b = "其他名称";
}
return this.category+'<br>'+b+'<br>'+this.value;
效果:
https://help.fanruan.com/finereport/doc-view-1296.html
可以参考下这个文档,写js判断下
if (this.category>9){
return this.category+"别的名字";
else{
return this.category+this.seriesName;
大概就这样