tooltip: {
trigger: "axis",
formatter: function (params) {
//seriers的数据name
var result = params[0].name;
params.forEach(function (item) {
result += "<br/>";
result +=
'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' +
item.color +
'"></span>';
result += item.seriesName + ":";
result += isNaN(item.value) ? 0 : item.value;
});
return result;
},
},
Eachrts tooltip实现自定义
最新推荐文章于 2022-08-12 09:33:11 发布