There was an error while loading. Please reload this page.
2 parents 403c30f + 227bba9 commit 2646ffdCopy full SHA for 2646ffd
1 file changed
src/plots/plots.js
@@ -2938,8 +2938,7 @@ function sortAxisCategoriesByValue(axList, gd) {
2938
if(catIndex === undefined) catIndex = cdi[axLetter];
2939
2940
// Skip points whose position is not a valid category
2941
- // (e.g. a null/NaN coordinate maps to BADNUM)
2942
- if (catIndex == null || catIndex < 0) continue;
+ if (isNaN(catIndex) || catIndex < 0) continue;
2943
2944
value = cdi.s;
2945
if(value === undefined) value = cdi.v;
0 commit comments