gpt4 book ai didi

javascript - Zoomcharts - 1.5.1 将鼠标悬停在多个链接上不起作用

转载 作者:行者123 更新时间:2023-12-03 09:37:00 24 4
gpt4 key购买 nike

我看到 Zoomcharts 在其最新更新 (1.5.1) 中提供了很酷的功能,但我相信它有一些错误...

如果两个节点之间有多个链接,我无法将鼠标悬停在中间链接上。我只能将鼠标悬停在第一个和最后一个链接上

如果你只是复制粘贴以下代码here ,你可以自己测试一下...

<script>
var data = {
"nodes":[
{"id":"n1", "loaded":true, "style":{"label":"Node1"}},
{"id":"n2", "loaded":true, "style":{"label":"Node2"}}
],
"links":[
{"id":"l1","from":"n1", "to":"n2", "style":{"fillColor":"red", "toDecoration":"arrow"}},
{"id":"l11","from":"n1", "to":"n2", "style":{"fillColor":"red", "toDecoration":"arrow"}},
{"id":"l111","from":"n1", "to":"n2", "style":{"fillColor":"red", "toDecoration":"arrow"}},
{"id":"l114","from":"n1", "to":"n2", "style":{"fillColor":"red", "toDecoration":"arrow"}}
]
};

var t = new NetChart({
container: document.getElementById("demo"),
area: { height: 350 },
data: { preloaded: data },
info: {enabled: true, linkContentsFunction: function(data, link, callback) {
return link.id;
}}
});

</script>

最佳答案

此问题已在 1.8 版本中解决。

在发布之前,您还可以使用以下版本的夜间版本:https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js

关于javascript - Zoomcharts - 1.5.1 将鼠标悬停在多个链接上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31304254/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com