I am modifying this source to make a linear fisheye view: http://bost.ocks.org/mike/fisheye/
My work is in the jsfiddle address below:
included code:
function startFishEye(x, y) {
mag.attr('cx', x);
mag.attr('cy', y);
fe_area_x.attr('y', y);
fe_area_y.attr('x', x);
xLine.attr("x1", xFisheye).attr("x2", xFisheye);
yLine.attr("y1", yFisheye).attr("y2", yFisheye);
}
http://jsfiddle.net/clerksx/vHExm/
When you drag the dot at the intersection of two semi-transparent black bands, the bars move and the fisheye focus also changes accordingly.
When the dragging is over, I'd like to move the closest intersection of two axe (one yAxis tick + one xAxis tic) to the center of the dot.
I guess I need to hack the fisheye libary itself a bit: https://github.com/d3/d3-plugins/blob/master/fisheye/fisheye.js
Any ideas?