Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering on multiple visualizations in the dashboard. #2280

Merged
merged 3 commits into from
Dec 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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