D3 Fisheye Distortion on simple Scatter plot
问题 I'm trying to implement the d3 fisheye distortion (http://bost.ocks.org/mike/fisheye/) on a simple scatter plot. Here the code that I have so far: http://plnkr.co/edit/yDWld6?p=preview I am very unsure how I should call the circles for the distortion. At the moment it looks like this but nothing happens on "mousemove" so far. svg.on("mousemove", function() { fisheye.center(d3.mouse(this)); circles .selectAll("circle") .each(function (d) { d.fisheye = fisheye(d); }) .attr("cx", function (d) {