Commit a3aecb0b authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix error about event rect widt when no ticks

parent 14db4af6
......@@ -6918,7 +6918,7 @@
length = axis.g.select('path.domain').node().getTotalLength() - outerTickSize * 2;
interval = length / axis.g.selectAll('line').size();
}
return interval;
return interval === Infinity ? 0 : interval;
};
axis.ticks = function () {
if (!arguments.length) { return tickArguments; }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -270,7 +270,7 @@ function c3_axis(d3, params) {
length = axis.g.select('path.domain').node().getTotalLength() - outerTickSize * 2;
interval = length / axis.g.selectAll('line').size();
}
return interval;
return interval === Infinity ? 0 : interval;
};
axis.ticks = function () {
if (!arguments.length) { return tickArguments; }
......
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