Browse Source

Fix x axis clip height

pull/703/head
Masayuki Tanaka 10 years ago
parent
commit
5a6476f435
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/clip.js

2
c3.js

@ -4319,7 +4319,7 @@
return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20; return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20;
}; };
c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) { c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) {
return forHorizontal ? this.margin.bottom : this.height + 8; return (forHorizontal ? this.margin.bottom : this.height) + 8;
}; };
c3_chart_internal_fn.getXAxisClipWidth = function () { c3_chart_internal_fn.getXAxisClipWidth = function () {
var $$ = this; var $$ = this;

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/clip.js

@ -37,7 +37,7 @@ c3_chart_internal_fn.getAxisClipWidth = function (forHorizontal) {
return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20; return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20;
}; };
c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) { c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) {
return forHorizontal ? this.margin.bottom : this.height + 8; return (forHorizontal ? this.margin.bottom : this.height) + 8;
}; };
c3_chart_internal_fn.getXAxisClipWidth = function () { c3_chart_internal_fn.getXAxisClipWidth = function () {
var $$ = this; var $$ = this;

Loading…
Cancel
Save