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 a0a9bb2 commit d6293d5Copy full SHA for d6293d5
src/plots/cartesian/ordered_categories.js
@@ -41,7 +41,7 @@ function flattenUniqueSort(axisLetter, sortFunction, data) {
41
insertionIndex = bisector(categoryArray, category);
42
43
// skip loop on already encountered values
44
- if(insertionIndex < categoryArray.length - 1 && categoryArray[insertionIndex] === category) continue;
+ if(insertionIndex < categoryArray.length && categoryArray[insertionIndex] === category) continue;
45
46
// insert value
47
categoryArray.splice(insertionIndex, 0, category);
0 commit comments