Skip to content

Commit 2646ffd

Browse files
committed
Merge branch 'master' into v4.0
2 parents 403c30f + 227bba9 commit 2646ffd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/plots/plots.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,8 +2938,7 @@ function sortAxisCategoriesByValue(axList, gd) {
29382938
if(catIndex === undefined) catIndex = cdi[axLetter];
29392939

29402940
// 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;
2941+
if (isNaN(catIndex) || catIndex < 0) continue;
29432942

29442943
value = cdi.s;
29452944
if(value === undefined) value = cdi.v;

0 commit comments

Comments
 (0)