const formatter = function(this: any) { const userOpt = this.points[0].series.userOptions; return `
| ${userOpt.th || '时间'} | ${this.x} | ` }
|---|---|
| ${val.series.name} | ${val.y}${val.series.userOptions.after || ''} |
| ${userOptions.th || '时间'} | ${this.x} |
|---|---|
| ${(isFunc ? userOptions.tipFormatter(this) : userOptions.tipFormatter) || ''} | |
| ${ this.points.map((val: any) => ( `${val.series.name} ${val.y}${val.series.userOptions.after || ''}` )).join('') } | |