We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4aa7a3 commit aaf12baCopy full SHA for aaf12ba
src/components/shapes/calc_autorange.js
@@ -43,7 +43,7 @@ module.exports = function calcAutorange(gd) {
43
};
44
45
function shapeBounds(ax, v0, v1, path, paramsToUse) {
46
- var convertVal = (ax.type === 'category') ? Number : ax.d2c;
+ var convertVal = (ax.type === 'category') ? ax.r2c : ax.d2c;
47
48
if(v0 !== undefined) return [convertVal(v0), convertVal(v1)];
49
if(!path) return;
0 commit comments