Commit 0f55800e authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix unexpected negative width for event rect

parent 891ab06f
...@@ -2668,7 +2668,7 @@ ...@@ -2668,7 +2668,7 @@
}; };
c3_chart_internal_fn.getEventRectWidth = function () { c3_chart_internal_fn.getEventRectWidth = function () {
return this.xAxis.tickInterval(); return Math.max(0, this.xAxis.tickInterval());
}; };
c3_chart_internal_fn.getShapeIndices = function (typeFilter) { c3_chart_internal_fn.getShapeIndices = function (typeFilter) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -100,5 +100,5 @@ c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) { ...@@ -100,5 +100,5 @@ c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) {
}; };
c3_chart_internal_fn.getEventRectWidth = function () { c3_chart_internal_fn.getEventRectWidth = function () {
return this.xAxis.tickInterval(); return Math.max(0, this.xAxis.tickInterval());
}; };
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