Correct work with no tick text at all

parent 9c369b7e
...@@ -327,6 +327,7 @@ function c3_axis(d3, params, $$) { ...@@ -327,6 +327,7 @@ function c3_axis(d3, params, $$) {
case 'top': case 'top':
case 'bottom': case 'bottom':
rectPositionFn = function(rect, d) { rectPositionFn = function(rect, d) {
if(!rect) return;
rect.x = scale1(d); rect.x = scale1(d);
rect.y = 0; rect.y = 0;
} }
...@@ -334,6 +335,7 @@ function c3_axis(d3, params, $$) { ...@@ -334,6 +335,7 @@ function c3_axis(d3, params, $$) {
case 'left': case 'left':
case 'right': case 'right':
rectPositionFn = function(rect, d) { rectPositionFn = function(rect, d) {
if(!rect) return;
rect.x = 0; rect.x = 0;
rect.y = scale1(d); rect.y = scale1(d);
} }
......
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