123
rated 0 times
[
127]
[
4]
/ answers: 1 / hits: 16146
/ 8 Years ago, thu, march 10, 2016, 12:00:00
I have a network graph of nodes and edges and would like to get the node data once it gets clicked. e.g,
var network = new vis.Network(container, data, options);
network.on( 'click', function(properties) {
console.log('clicked node ' + properties.nodes);
});
But this just returns some internal id [105]. Is there a way to get the actual data that is associated with the node?
More From » vis.js