Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 418e85e

Browse filesBrowse files
committed
Fix lint errors
1 parent c1b2674 commit 418e85e
Copy full SHA for 418e85e

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/plots/cartesian/axes.js

Copy file name to clipboardExpand all lines: src/plots/cartesian/axes.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,8 +1206,8 @@ axes.tickText = function(ax, x, hover) {
12061206
return showAttr !== 'all' && x !== first_or_last;
12071207
}
12081208

1209-
if (hover) {
1210-
hideexp = 'never'
1209+
if(hover) {
1210+
hideexp = 'never';
12111211
} else {
12121212
hideexp = ax.exponentformat !== 'none' && isHidden(ax.showexponent) ? 'hide' : '';
12131213
}
@@ -1348,14 +1348,14 @@ function formatCategory(ax, out) {
13481348
}
13491349

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.