Commit 523e5b2b authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix horizontal axis clip

parent d209f3d6
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
return +d3.select(__bindto).style('height').replace('px', ''); // TODO: if rotated, use width return +d3.select(__bindto).style('height').replace('px', ''); // TODO: if rotated, use width
} }
function getAxisClipX(forHorizontal) { function getAxisClipX(forHorizontal) {
return forHorizontal ? -1 : -(margin.left - 1); return forHorizontal ? -5 : -(margin.left - 1);
} }
function getAxisClipY(forHorizontal) { function getAxisClipY(forHorizontal) {
return forHorizontal ? -20 : -1; return forHorizontal ? -20 : -1;
...@@ -2845,6 +2845,7 @@ ...@@ -2845,6 +2845,7 @@
svg.attr('width', currentWidth).attr('height', currentHeight); svg.attr('width', currentWidth).attr('height', currentHeight);
svg.select('#' + clipId).select('rect').attr('width', width).attr('height', height); svg.select('#' + clipId).select('rect').attr('width', width).attr('height', height);
svg.select('#xaxis-clip').select('rect').attr('width', getXAxisClipWidth); svg.select('#xaxis-clip').select('rect').attr('width', getXAxisClipWidth);
svg.select('#yaxis-clip').select('rect').attr('width', getYAxisClipWidth);
svg.select('.zoom-rect').attr('width', width).attr('height', height); svg.select('.zoom-rect').attr('width', width).attr('height', height);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment