Skip to content

Commit 6e25640

Browse files
committed
link fullLayout.separators to ax._separators
- to avoid confusion as separators isn't an axis attribute
1 parent 5eb6202 commit 6e25640

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/cartesian/axes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ function numFormat(v, ax, fmtoverride, hover) {
13431343
if(dp) v = v.substr(0, dp + tickRound).replace(/\.?0+$/, '');
13441344
}
13451345
// insert appropriate decimal point and thousands separator
1346-
v = Lib.numSeparate(v, ax.separators, separatethousands);
1346+
v = Lib.numSeparate(v, ax._separators, separatethousands);
13471347
}
13481348

13491349
// add exponent

src/plots/cartesian/set_convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ module.exports = function setConvert(ax, fullLayout) {
419419

420420
// copy ref to fullLayout.separators so that
421421
// methods in Axes can use it w/o having to pass fullLayout
422-
ax.separators = fullLayout.separators;
422+
ax._separators = fullLayout.separators;
423423

424424
// and for bar charts and box plots: reset forced minimum tick spacing
425425
delete ax._minDtick;

0 commit comments

Comments
 (0)