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 1118cfd commit f64ab49Copy full SHA for f64ab49
src/plots/cartesian/axes.js
@@ -2100,7 +2100,7 @@ function getDividerVals(ax, vals) {
2100
var out = [];
2101
var i, current;
2102
2103
- var reversed = (vals[vals.length - 1].x < vals[0].x);
+ var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);
2104
2105
// never used for labels;
2106
// no need to worry about the other tickTextObj keys
0 commit comments