zoomcharts - 1.5.1悬停在多个链接上不起作用

时间:2015-07-08 21:36:41

标签: javascript 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>

0 个答案:

没有答案