Skip to content

Commit bc329a9

Browse files
committed
Move tickPrefix and tickSuffix coersion out of if block
1 parent d8e09ee commit bc329a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plots/cartesian/tick_defaults.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ module.exports = function handleTickDefaults(containerIn, containerOut, coerce,
3131

3232
var showAttrDflt = getShowAttrDflt(containerIn);
3333

34+
var tickPrefix = coerce('tickprefix');
35+
if(tickPrefix) coerce('showtickprefix', showAttrDflt);
36+
37+
var tickSuffix = coerce('ticksuffix');
38+
if(tickSuffix) coerce('showticksuffix', showAttrDflt);
39+
3440
var showTickLabels = coerce('showticklabels');
3541
if(showTickLabels) {
3642
Lib.coerceFont(coerce, 'tickfont', options.font || {});
3743
coerce('tickangle');
3844

39-
var tickPrefix = coerce('tickprefix');
40-
if(tickPrefix) coerce('showtickprefix', showAttrDflt);
41-
42-
var tickSuffix = coerce('ticksuffix');
43-
if(tickSuffix) coerce('showticksuffix', showAttrDflt);
44-
4545
var tickFormat = coerce('tickformat');
4646
if(!tickFormat && axType !== 'date') {
4747
coerce('showexponent', showAttrDflt);

0 commit comments

Comments
 (0)