image.png
tooltip: {
trigger: "axis",
formatter: function(params) {
/// alert(JSON.stringify(params)); 显示数据格式
var res = "<div><p>" + params[0].name + "</p></div>";
for (var i = 0; i < params.length; i++) {
if (params[i].data != undefined) {
res +=
"<p>" + params[i].marker + params[i].seriesName + ":" + params[i].data + "</p>";
}
}
return res;
}
},
image.png