Skip to content

Commit be15aa9

Browse files
committed
Cast tick value to String for render
1 parent 8b3d17f commit be15aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,8 @@ function formatLog(ax, out, hover, extraPrecision, hideexp) {
962962
if(['e','E','power'].indexOf(ax.exponentformat)!==-1) {
963963
base = base === Math.E ? 'e' : base;
964964
var p = Math.round(x);
965-
if(p === 0) out.text = 1;
966-
else if(p === 1) out.text = base;
965+
if(p === 0) out.text = '1';
966+
else if(p === 1) out.text = String(base);
967967
else if(p > 1) out.text = base + '<sup>' + p + '</sup>';
968968
else out.text = base + '<sup>\u2212' + -p + '</sup>';
969969

0 commit comments

Comments
 (0)