Skip to content

Commit

Permalink
Merge pull request elastic#7845 from ppisljar/fix/2025
Browse files Browse the repository at this point in the history
adding title to x_axis labels

Former-commit-id: 468cb2c
  • Loading branch information
ppisljar authored Aug 2, 2016
2 parents 6399e74 + 28b4300 commit c3cf20f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/public/vislib/lib/x_axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default function XAxisFactory(Private) {
let self = this;
let text;
let barWidth = self.xScale.rangeBand();
let maxRotatedLength = 180;
let maxRotatedLength = 120;
let xAxisPadding = 15;
let svg;
let lengths = [];
Expand Down Expand Up @@ -351,7 +351,9 @@ export default function XAxisFactory(Private) {
.attr('dy', '-.60em')
.attr('transform', function rotate() {
return 'rotate(-90)';
});
})
.append('title')
.text(text => text);
selection.select('svg')
.attr('height', self._attr.xAxisLabelHt);
}
Expand Down

0 comments on commit c3cf20f

Please sign in to comment.