Browse Source

Include 0 as all positive/negative

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

4
c3.js

@ -1227,8 +1227,8 @@
if (yDomainMin === yDomainMax) {
yDomainMin < 0 ? yDomainMax = 0 : yDomainMin = 0;
}
isAllPositive = yDomainMin > 0 && yDomainMax > 0;
isAllNegative = yDomainMin < 0 && yDomainMax < 0;
isAllPositive = yDomainMin >= 0 && yDomainMax >= 0;
isAllNegative = yDomainMin <= 0 && yDomainMax <= 0;
if (isAllPositive) { yDomainMin = 0; }
if (isAllNegative) { yDomainMax = 0; }

2
c3.min.js vendored

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