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

Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 87d1dcb

Browse files
committed
Fix lint errors
1 parent 86c6c5b commit 87d1dcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plots/cartesian/axes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,8 +1207,8 @@ axes.tickText = function(ax, x, hover) {
12071207
return showAttr !== 'all' && x !== first_or_last;
12081208
}
12091209

1210-
if (hover) {
1211-
hideexp = 'never'
1210+
if(hover) {
1211+
hideexp = 'never';
12121212
} else {
12131213
hideexp = ax.exponentformat !== 'none' && isHidden(ax.showexponent) ? 'hide' : '';
12141214
}
@@ -1350,14 +1350,14 @@ function formatCategory(ax, out) {
13501350
}
13511351

13521352
function formatLinear(ax, out, hover, extraPrecision, hideexp) {
1353-
if (hideexp === 'never') {
1353+
if(hideexp === 'never') {
13541354
// If this is a hover label, then we must *never* hide the exponent
13551355
// for the sake of display, which could give the wrong value by
13561356
// potentially many orders of magnitude. If hideexp was 'never', then
13571357
// it's now succeeded by preventing the other condition from automating
13581358
// this choice. Thus we can unset it so that the axis formatting takes
13591359
// precedence.
1360-
hideexp = ''
1360+
hideexp = '';
13611361
} else if(ax.showexponent === 'all' && Math.abs(out.x / ax.dtick) < 1e-6) {
13621362
// don't add an exponent to zero if we're showing all exponents
13631363
// so the only reason you'd show an exponent on zero is if it's the

0 commit comments

Comments
 (0)