Skip to content

Commit

Permalink
Merge pull request #2280 from stormpython/fix/#2255
Browse files Browse the repository at this point in the history
Allow filtering on multiple visualizations in the dashboard.
  • Loading branch information
rashidkpc committed Dec 12, 2014
2 parents c5f15f1 + 28cf2c5 commit e8da49f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/kibana/components/vislib/lib/x_axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e8da49f

Please sign in to comment.