|
@ -77,9 +77,7 @@ |
|
|
}; |
|
|
}; |
|
|
var options = {stabilization:false}; |
|
|
var options = {stabilization:false}; |
|
|
network = new vis.Network(container, data, options); |
|
|
network = new vis.Network(container, data, options); |
|
|
network.on('click', function(params) { |
|
|
|
|
|
console.log(params) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// add event listeners |
|
|
// add event listeners |
|
|
network.on('select', function(params) { |
|
|
network.on('select', function(params) { |
|
|
document.getElementById('selection').innerHTML = 'Selection: ' + params.nodes; |
|
|
document.getElementById('selection').innerHTML = 'Selection: ' + params.nodes; |
|
|