I am currently utilizing the d3.js library and facing a challenge in meeting the client's requirements.
The client has requested for "circles to turn black" and "follow" the mouse when hovered over.
I am unsure if d3.js library supports such a feature as I can only find options for mouse drag interaction.
You can view my sample code on JSFiddle below:
node.on("mousemove", function(){
var coords = d3.mouse(this);
//node.attr('transform', 'translate(' + coords[0] + ',' + coords[1] + ')';
nodes.call(force.drag);
});
JSFiddle link: https://jsfiddle.net/glenmongaya/4pjaeko3/5/
Thank you in advance for your assistance.