Skip to content

Commit

Permalink
fix missing axis labels when changing vertical bar chart to horizonta…
Browse files Browse the repository at this point in the history
…l bar chart (#32628) (#32874)
  • Loading branch information
timroes committed Mar 11, 2019
1 parent 75e4300 commit 3c2b297
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 @@ -106,7 +106,7 @@ export function VislibAxisLabelsProvider() {
selection.selectAll('.tick text')
.text(function (d) {
const par = d3.select(this.parentNode).node();
const myPos = scaleStartPad + (config.isHorizontal() ? self.axisScale.scale(d) : maxSize - self.axisScale.scale(d));
const myPos = scaleStartPad + 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 3c2b297

Please sign in to comment.