Commit cad29fd8 authored by Evgeny's avatar Evgeny

Fix offset for ticks when turned for 90 degrees

parent 594f7514
......@@ -8374,8 +8374,9 @@
var offset = 10;
var tickSize = getSizeFor1Char(tickText).w * tickText.length;
var charHeight = getSizeFor1Char(tickText).h;
return 'rotate(-90) translate(' + (-tickSize/2 - offset) + ', ' + (-tickOffset) + ')';
return 'rotate(-90) translate(' + (-tickSize/2 - offset) + ', ' + (-charHeight) + ')';
});
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -244,8 +244,9 @@ function c3_axis(d3, params, $$) {
var offset = 10;
var tickSize = getSizeFor1Char(tickText).w * tickText.length;
var charHeight = getSizeFor1Char(tickText).h;
return 'rotate(-90) translate(' + (-tickSize/2 - offset) + ', ' + (-tickOffset) + ')';
return 'rotate(-90) translate(' + (-tickSize/2 - offset) + ', ' + (-charHeight) + ')';
});
}
}
......
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