We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d91fa commit 86c0b60Copy full SHA for 86c0b60
src/plots/cartesian/axes.js
@@ -2100,8 +2100,7 @@ function getDividerVals(ax, vals) {
2100
var out = [];
2101
var i, current;
2102
2103
- var xvals = vals.map(a => a.x);
2104
- var reversed = (xvals[1] < xvals[0]);
+ var reversed = (vals[vals.length - 1].x < vals[0].x);
2105
2106
// never used for labels;
2107
// no need to worry about the other tickTextObj keys
0 commit comments