File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ module.exports = function setConvert(ax, fullLayout) {
180
180
function getCategoryPosition ( v ) {
181
181
// d2l/d2c variant that that won't add categories but will also
182
182
// allow numbers to be mapped to the linearized axis positions
183
- var index = getRangePosition ( v ) ;
183
+ var index = getCategoryIndex ( v ) ;
184
184
if ( index !== undefined ) return index ;
185
185
if ( isNumeric ( v ) ) return + v ;
186
186
}
@@ -320,12 +320,12 @@ module.exports = function setConvert(ax, fullLayout) {
320
320
ax . d2r = ax . d2l_noadd = getCategoryPosition ;
321
321
322
322
ax . r2c = function ( v ) {
323
- var index = getCategoryPosition ( v ) ;
323
+ var index = getRangePosition ( v ) ;
324
324
return index !== undefined ? index : ax . fraction2r ( 0.5 ) ;
325
325
} ;
326
326
327
327
ax . l2r = ax . c2r = ensureNumber ;
328
- ax . r2l = getCategoryPosition ;
328
+ ax . r2l = getRangePosition ;
329
329
330
330
ax . d2p = function ( v ) { return ax . l2p ( ax . r2c ( v ) ) ; } ;
331
331
ax . p2d = function ( px ) { return getCategoryName ( p2l ( px ) ) ; } ;
You can’t perform that action at this time.
0 commit comments