Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
revert bad fix (elastic#47200) (elastic#47332)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Oct 5, 2019
1 parent 63d817f commit 5ee979f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy/ui/public/vislib/lib/axis/axis_labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class AxisLabels {
selection.selectAll('.tick text')
.text(function (d) {
const par = d3.select(this.parentNode).node();
const myPos = scaleStartPad + self.axisScale.scale(d);
const myPos = scaleStartPad + (config.isHorizontal() ? self.axisScale.scale(d) : maxSize - self.axisScale.scale(d));
const mySize = (config.isHorizontal() ? par.getBBox().width : par.getBBox().height) * padding;
const halfSize = mySize / 2;

Expand Down

0 comments on commit 5ee979f

Please sign in to comment.