Browse Source

Fix nan of label for arc

pull/263/merge
Masayuki Tanaka 11 years ago
parent
commit
a60d1d39d2
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -1029,7 +1029,7 @@
y = c[1]; y = c[1];
h = Math.sqrt(x * x + y * y); h = Math.sqrt(x * x + y * y);
// TODO: ratio should be an option? // TODO: ratio should be an option?
ratio = (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h; ratio = radius && h ? (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h : 0;
translate = "translate(" + (x * ratio) + ',' + (y * ratio) + ")"; translate = "translate(" + (x * ratio) + ',' + (y * ratio) + ")";
} }
return translate; return translate;

2
c3.min.js vendored

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