Commit b44982d3 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix event rect width

parent 654739db
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment