var option = {
tooltip: {
trigger: "item",
backgroundColor: "rgba(166, 200, 76, 0.82)",
borderColor: "#FFFFCC",
showDelay: 0,
hideDelay: 0,
enterable: true,
transitionDuration: 0,
extraCssText: "z-index:100",
formatter: function (params, ticket, callback) {
//触碰点
if (params.seriesType == "effectScatter") {
return ("点");
} else if (params.seriesType == "lines") {
//触碰线
return ("线");
}
},
},
}
echarts地图判断触碰的是点还是线,从而弹窗显示不同内容
最新推荐文章于 2023-09-15 15:41:55 发布