From faebe60602ed4d66dd4563e38f1f24afd39288b9 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 8 Mar 2018 11:13:11 -0500 Subject: [PATCH] reassign `this` compatible with flat-pack and polar --- src/plots/cartesian/axes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js index b4e9e6b1420..5b6b766fac9 100644 --- a/src/plots/cartesian/axes.js +++ b/src/plots/cartesian/axes.js @@ -1787,7 +1787,7 @@ axes.doTicks = function(gd, axid, skipTitle) { var anchor = labelanchor(angle, d); var thisLabel = d3.select(this), mathjaxGroup = thisLabel.select('.text-math-group'), - transform = transfn(d) + + transform = transfn.call(thisLabel.node(), d) + ((isNumeric(angle) && +angle !== 0) ? (' rotate(' + angle + ',' + labelx(d) + ',' + (labely(d) - d.fontSize / 2) + ')') :