Skip to content

Commit 3bc03e5

Browse files
committed
add explanation for why multicategory axes have no d2c & d2l
1 parent a9eca09 commit 3bc03e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ module.exports = function setConvert(ax, fullLayout) {
301301
};
302302
}
303303
else if(ax.type === 'multicategory') {
304-
// ax.d2c = ax.d2l = setMultiCategoryIndex;
304+
// N.B. multicategory axes don't define d2c and d2l,
305+
// as 'data-to-calcdata' conversion needs to take into
306+
// account all data array items as in ax.makeCalcdata.
307+
305308
ax.r2d = ax.c2d = ax.l2d = getCategoryName;
306309
ax.d2r = ax.d2l_noadd = getCategoryIndex;
307310

0 commit comments

Comments
 (0)