Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c32163e

Browse files
committed
Add comments
1 parent ff043b4 commit c32163e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module.exports = function setConvert(ax, fullLayout) {
148148
// d2l/d2c variant that that won't add categories but will also
149149
// allow numbers to be mapped to the linearized axis positions
150150
var index;
151+
// Get the index from the aux map if it was built, otherwise search the _categories array
151152
if(ax._categoriesMap) {
152153
index = ax._categoriesMap[v];
153154
if(index !== undefined) return index;

0 commit comments

Comments
 (0)