Skip to content

Commit aaf12ba

Browse files
committed
use r2c in shapes calc autorange
1 parent e4aa7a3 commit aaf12ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shapes/calc_autorange.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function calcAutorange(gd) {
4343
};
4444

4545
function shapeBounds(ax, v0, v1, path, paramsToUse) {
46-
var convertVal = (ax.type === 'category') ? Number : ax.d2c;
46+
var convertVal = (ax.type === 'category') ? ax.r2c : ax.d2c;
4747

4848
if(v0 !== undefined) return [convertVal(v0), convertVal(v1)];
4949
if(!path) return;

0 commit comments

Comments
 (0)