mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Merge pull request #7845 from ppisljar/fix/2025
adding title to x_axis labels
This commit is contained in:
commit
468cb2c146
1 changed files with 4 additions and 2 deletions
|
@ -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 = [];
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue