Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b73d395 commit 0224fa0Copy full SHA for 0224fa0
src/plots/cartesian/axis_autotype.js
@@ -85,9 +85,10 @@ function category(a, convertNumeric) {
85
if(seen[stri]) continue;
86
seen[stri] = 1;
87
88
- if(typeof ai === 'boolean') curvecats++;
89
- else if(convertNumeric ? Lib.cleanNumber(ai) !== BADNUM : typeof ai === 'number') curvenums++;
90
- else if(typeof ai === 'string') curvecats++;
+ var t = typeof ai;
+ if(t === 'boolean') curvecats++;
+ else if(convertNumeric ? Lib.cleanNumber(ai) !== BADNUM : t === 'number') curvenums++;
91
+ else if(t === 'string') curvecats++;
92
}
93
94
return curvecats > curvenums * 2;
0 commit comments