D3 fisheye on width on bar chart
- by Dexter Tan
i have been trying to create a vertical bar chart with a d3 fisheye cartesian distortion with only the x-axis being distorted.
I have succeeded in distorting the x position of the vertical bars on mouseover with the following code:
var maxMag = d3.max(dataset, function(d) { return d.value[10]; });
var minDate = d3.min(dataset, function(d) {…