Vis js graph3d捕获z值onclick事件

时间:2018-09-06 14:29:24

标签: vis.js

我正在尝试使用vis graph3d库,并且我坚持使用onclick事件捕获z值。我正在使用以下代码:

var container = document.getElementById('mygraph');
graph3d = new vis.Graph3d(container, data, options);
graph3d._onClick = function (point) {
    console.log(point.style + ', ' + point.z + ', ' + point.x + ', ' + point.y);
}

在控制台中显示以下内容:

undefined, undefined, 723, 657

x和y的值与图中的x和y值没有关系吗?

0 个答案:

没有答案
相关问题