此文首發於 lijing0906.github.io
option.tooltip.formatter: function(params) {
let res = `${params[0].axisValue}:<br>`
for (let i in params) {
res += `${params[i].marker}${params[i].seriesName}:${params[i].value}個<br>`
}
return res;
}
複製程式碼