@@ -31,27 +31,25 @@ module.exports = function handleTickDefaults(containerIn, containerOut, coerce,
31
31
32
32
var showAttrDflt = getShowAttrDflt ( containerIn ) ;
33
33
34
- var showTickLabels = coerce ( 'showticklabels' ) ,
35
- tickFormat = coerce ( 'tickformat' ) ,
36
- tickPrefix = coerce ( 'tickprefix' ) ,
37
- tickSuffix = coerce ( 'ticksuffix' ) ;
38
-
39
- if ( tickPrefix ) coerce ( 'showtickprefix' , showAttrDflt ) ;
40
- if ( tickSuffix ) coerce ( 'showticksuffix' , showAttrDflt ) ;
41
-
34
+ var showTickLabels = coerce ( 'showticklabels' ) ;
42
35
if ( showTickLabels ) {
43
36
Lib . coerceFont ( coerce , 'tickfont' , options . font || { } ) ;
44
37
coerce ( 'tickangle' ) ;
45
- }
46
38
47
- if ( axType !== 'category' ) {
48
- if ( ! options . noHover ) coerce ( 'hoverformat' ) ;
39
+ var tickPrefix = coerce ( 'tickprefix' ) ;
40
+ if ( tickPrefix ) coerce ( 'showtickprefix' , showAttrDflt ) ;
49
41
42
+ var tickSuffix = coerce ( 'ticksuffix' ) ;
43
+ if ( tickSuffix ) coerce ( 'showticksuffix' , showAttrDflt ) ;
44
+
45
+ var tickFormat = coerce ( 'tickformat' ) ;
50
46
if ( ! tickFormat && axType !== 'date' ) {
51
47
coerce ( 'showexponent' , showAttrDflt ) ;
52
48
coerce ( 'exponentformat' ) ;
53
49
}
54
50
}
51
+
52
+ if ( axType !== 'category' && ! options . noHover ) coerce ( 'hoverformat' ) ;
55
53
} ;
56
54
57
55
/*
0 commit comments