Browse Source

Fix horizontal axis clip again

pull/80/head
Masayuki Tanaka 11 years ago
parent
commit
b9b9d1e41d
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -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 ? -5 : -(margin.left - 1); return forHorizontal ? -(1 + 4) : -(margin.left - 1);
} }
function getAxisClipY(forHorizontal) { function getAxisClipY(forHorizontal) {
return forHorizontal ? -20 : -1; return forHorizontal ? -20 : -1;
@ -383,7 +383,7 @@
return getAxisClipY(__axis_rotated); return getAxisClipY(__axis_rotated);
} }
function getAxisClipWidth(forHorizontal) { function getAxisClipWidth(forHorizontal) {
return forHorizontal ? width + 2 : margin.left + 20; return forHorizontal ? width + 2 + 4 : margin.left + 20;
} }
function getAxisClipHeight(forHorizontal) { function getAxisClipHeight(forHorizontal) {
return forHorizontal ? 80 : height + 2; return forHorizontal ? 80 : height + 2;

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save