File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -1206,8 +1206,8 @@ axes.tickText = function(ax, x, hover) {
1206
1206
return showAttr !== 'all' && x !== first_or_last ;
1207
1207
}
1208
1208
1209
- if ( hover ) {
1210
- hideexp = 'never'
1209
+ if ( hover ) {
1210
+ hideexp = 'never' ;
1211
1211
} else {
1212
1212
hideexp = ax . exponentformat !== 'none' && isHidden ( ax . showexponent ) ? 'hide' : '' ;
1213
1213
}
@@ -1348,14 +1348,14 @@ function formatCategory(ax, out) {
1348
1348
}
1349
1349
1350
1350
function formatLinear ( ax , out , hover , extraPrecision , hideexp ) {
1351
- if ( hideexp === 'never' ) {
1351
+ if ( hideexp === 'never' ) {
1352
1352
// If this is a hover label, then we must *never* hide the exponent
1353
1353
// for the sake of display, which could give the wrong value by
1354
1354
// potentially many orders of magnitude. If hideexp was 'never', then
1355
1355
// it's now succeeded by preventing the other condition from automating
1356
1356
// this choice. Thus we can unset it so that the axis formatting takes
1357
1357
// precedence.
1358
- hideexp = ''
1358
+ hideexp = '' ;
1359
1359
} else if ( ax . showexponent === 'all' && Math . abs ( out . x / ax . dtick ) < 1e-6 ) {
1360
1360
// don't add an exponent to zero if we're showing all exponents
1361
1361
// so the only reason you'd show an exponent on zero is if it's the
You can’t perform that action at this time.
0 commit comments