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 e8941d6 commit b3fb03dCopy full SHA for b3fb03d
src/plots/plots.js
@@ -1950,6 +1950,13 @@ plots.doCalcdata = function(gd, traces) {
1950
// to be filled in later by ax.d2c
1951
for(i = 0; i < axList.length; i++) {
1952
axList[i]._categories = axList[i]._initialCategories.slice();
1953
+
1954
+ //Build the lookup map for initialized categories
1955
+ axList[i]._categoriesMap = {};
1956
+ for (var j = 0; j < axList[i]._categories.length; j++) {
1957
+ axList[i]._categoriesMap[axList[i]._categories[j]] = j;
1958
+ }
1959
1960
if(axList[i].type === 'category') hasCategoryAxis = true;
1961
}
1962
0 commit comments