Skip to content

Commit d411262

Browse files
committed
make category r2c handle strings values
- fixes annotations autorange - does not appear to have any unwanted side-effects.
1 parent f5c0382 commit d411262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ module.exports = function setConvert(ax, fullLayout) {
231231
ax.d2c = ax.d2l = setCategoryIndex;
232232
ax.r2d = ax.c2d = ax.l2d = getCategoryName;
233233

234-
ax.d2r = ax.d2l_noadd = getCategoryIndex;
234+
ax.r2c = ax.d2r = ax.d2l_noadd = getCategoryIndex;
235235

236-
ax.l2r = ax.r2c = ax.c2r = ensureNumber;
236+
ax.l2r = ax.c2r = ensureNumber;
237237
ax.r2l = getCategoryIndex;
238238

239239
ax.d2p = function(v) { return ax.l2p(getCategoryIndex(v)); };

0 commit comments

Comments
 (0)