Browse Source

Fix show/hide when y2 exists

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
64deb72d38
  1. 3
      c3.js
  2. 2
      c3.min.js

3
c3.js

@ -1105,6 +1105,9 @@
center = axisId === 'y2' ? __axis_y2_center : __axis_y_center,
yDomainAbs, widths, diff, ratio,
showDataLabel = hasDataLabel() && __axis_rotated;
if (yTargets.length === 0) { // use current domain if target of axisId is none
return axisId === 'y2' ? y2.domain() : y.domain();
}
if (yDomainMin === yDomainMax) {
yDomainMin < 0 ? yDomainMax = 0 : yDomainMin = 0;
}

2
c3.min.js vendored

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