Browse Source

Fix min of padding left when axis rotated

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
a3bbdb33ab
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -515,7 +515,7 @@
if (__padding_left) {
return __padding_left;
} else if (__axis_rotated) {
return !__axis_x_show ? 1 : ceil10(getAxisWidthByAxisId('x'));
return !__axis_x_show ? 1 : Math.max(ceil10(getAxisWidthByAxisId('x')), 40);
} else {
return !__axis_y_show || __axis_y_inner ? 1 : ceil10(getAxisWidthByAxisId('y'));
}

2
c3.min.js vendored

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