Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b5663a

Browse files
committed
Fix careless mistake
1 parent d16ec29 commit 9b5663a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/plots/cartesian/tick_defaults.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ module.exports = function handleTickDefaults(containerIn, containerOut, coerce,
4242
Lib.coerceFont(coerce, 'tickfont', options.font || {});
4343
coerce('tickangle');
4444

45-
var tickFormat = coerce('tickformat');
46-
if(!tickFormat && axType !== 'date') {
47-
coerce('showexponent', showAttrDflt);
48-
coerce('exponentformat');
45+
if(axType !== 'category'){
46+
var tickFormat = coerce('tickformat');
47+
if(!tickFormat && axType !== 'date') {
48+
coerce('showexponent', showAttrDflt);
49+
coerce('exponentformat');
50+
}
4951
}
5052
}
5153

0 commit comments

Comments
 (0)