diff --git a/src/kibana/components/vislib/lib/x_axis.js b/src/kibana/components/vislib/lib/x_axis.js index 5b0a56169c009..fabd00c4d3e15 100644 --- a/src/kibana/components/vislib/lib/x_axis.js +++ b/src/kibana/components/vislib/lib/x_axis.js @@ -232,24 +232,13 @@ define(function (require) { var text; var barWidth = self.xScale.rangeBand(); var maxRotatedLength = 180; - var textWidth = 0; var xAxisPadding = 15; var svg; - var xAxisLabelHt = 15; var lengths = []; var length; self._attr.isRotated = false; return function (selection) { - - // maxRotatedLength = min of 60% chart height or maxRotatedLength - var chtWrap = d3.select(this.node().parentNode.parentNode.parentNode).select('.chart-wrapper'); - if (chtWrap) { - var chtWrapHt = chtWrap.style('height'); - chtWrapHt = 0.6 * +chtWrapHt.substring(0, chtWrapHt.length - 2); - maxRotatedLength = _.min([maxRotatedLength, chtWrapHt]); - } - text = selection.selectAll('.tick text'); text.each(function textWidths() {