Here's a link of my demo! If it's not clear enough, please see this link of fisheye demo2.
fisheye.copy = function() {
return d3_fisheye_scale(scale.copy(), d, a);
};
fisheye.nice = scale.nice;
fisheye.ticks = scale.ticks;
fisheye.tickFormat = scale.tickFormat;
return d3.rebind(fisheye, scale, "domain", "range");
I want my fisheye to move smoothly, which means when I go over the plain space, it will do fisheye also.
Couple issues:
1.) You have a couple blank lines at the end of your tsv file, this is introducing bogus data into your plot.
2.) You've wrapped your circles in a
g
element. Theg
group is an "empty" container and doesn't receive mouse events. One trick here it to fill your empty space with an element that does, like arect
.Then mouseover becomes:
Updated example.