There was an error while loading. Please reload this page.
1 parent 5fff4b7 commit 2e9257cCopy full SHA for 2e9257c
1 file changed
src/plots/plots.js
@@ -3190,7 +3190,7 @@ function sortAxisCategoriesByValue(axList, gd) {
3190
3191
// Skip points whose position is not a valid category
3192
// (e.g. a null/NaN coordinate maps to BADNUM)
3193
- if(!(catIndex + 1)) continue;
+ if (catIndex == null || catIndex < 0) continue;
3194
3195
value = cdi.s;
3196
if(value === undefined) value = cdi.v;
0 commit comments