Browse Source

Fix event rect width

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

4
c3.js

@ -415,8 +415,8 @@
}
function getEventRectWidth() {
var base = __axis_rotated ? height : width,
ratio = getXDomainRatio(),
maxDataCount = getMaxDataCount();
maxDataCount = getMaxDataCount(),
ratio = getXDomainRatio() * (hasBarType(c3.data.targets) ? (maxDataCount - 1) / maxDataCount : 0.98);
return maxDataCount > 1 ? (base * ratio) / (maxDataCount - 1) : base;
}
function updateLegndStep(step) {

2
c3.min.js vendored

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